introduced account interface

This commit is contained in:
jomu
2017-01-22 21:47:23 +00:00
parent 7ffcbbd1cd
commit a8bc96b329
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,16 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package de.muehlencord.shared.account.entity;
/**
*
* @author Joern Muehlencord <joern at muehlencord.de>
*/
public interface Account {
String getUsername();
}

View File

@ -51,7 +51,7 @@ import org.hibernate.annotations.Type;
@NamedQuery(name = "AccountEntity.findByCreatedBy", query = "SELECT a FROM AccountEntity a WHERE a.createdBy = :createdBy"),
@NamedQuery(name = "AccountEntity.findByLastUpdatedOn", query = "SELECT a FROM AccountEntity a WHERE a.lastUpdatedOn = :lastUpdatedOn"),
@NamedQuery(name = "AccountEntity.findByLastUpdatedBy", query = "SELECT a FROM AccountEntity a WHERE a.lastUpdatedBy = :lastUpdatedBy")})
public class AccountEntity implements Serializable {
public class AccountEntity implements Serializable, Account {
private static final long serialVersionUID = 1L;
@Id
@ -171,6 +171,7 @@ public class AccountEntity implements Serializable {
this.id = id;
}
@Override
public String getUsername() {
return username;
}