added
apikey
This commit is contained in:
@@ -11,5 +11,6 @@ import org.springframework.stereotype.Repository;
|
||||
*/
|
||||
@Repository
|
||||
public interface ApiKeyDAO extends JpaRepository<ApiKey, Long> {
|
||||
// Apikeyddd findByApiKey(Apikeyddd apikey);
|
||||
|
||||
ApiKey findByApiKey(String apiKey);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ public class ApiKey {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "API_KEY", nullable = false, length = 50)
|
||||
public String getApiKey() {
|
||||
return apiKey;
|
||||
@@ -38,7 +37,7 @@ public class ApiKey {
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name="CREATE_DATE", nullable=false)
|
||||
@Column(name="CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
|
||||
public Date getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user