apikey
This commit is contained in:
snoop 2017-06-23 16:37:15 +09:00
parent 7282b0493b
commit ca24f7c1b4
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;
}