added
apikey
This commit is contained in:
parent
7282b0493b
commit
ca24f7c1b4
|
@ -11,5 +11,6 @@ import org.springframework.stereotype.Repository;
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface ApiKeyDAO extends JpaRepository<ApiKey, Long> {
|
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;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
|
||||||
@Column(name = "API_KEY", nullable = false, length = 50)
|
@Column(name = "API_KEY", nullable = false, length = 50)
|
||||||
public String getApiKey() {
|
public String getApiKey() {
|
||||||
return apiKey;
|
return apiKey;
|
||||||
|
@ -38,7 +37,7 @@ public class ApiKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@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() {
|
public Date getCreateDate() {
|
||||||
return createDate;
|
return createDate;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user