| 32 | import java.util.UUID; |
| 33 | |
| 34 | @Entity |
| 35 | @Table(name = "account") |
| 36 | public class AccountVO implements Account { |
| 37 | @Id |
| 38 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| 39 | @Column(name = "id") |
| 40 | private long id; |
| 41 | |
| 42 | @Column(name = "account_name") |
| 43 | private String accountName = null; |
| 44 | |
| 45 | @Column(name = "type") |
| 46 | @Enumerated(value = EnumType.ORDINAL) |
| 47 | private Type type; |
| 48 | |
| 49 | @Column(name = "role_id") |
| 50 | private Long roleId; |
| 51 | |
| 52 | @Column(name = "domain_id") |
| 53 | private long domainId; |
| 54 | |
| 55 | @Column(name = "state") |
| 56 | @Enumerated(value = EnumType.STRING) |
| 57 | private State state; |
| 58 | |
| 59 | @Column(name = GenericDao.CREATED_COLUMN) |
| 60 | private Date created; |
| 61 | |
| 62 | @Column(name = GenericDao.REMOVED_COLUMN) |
| 63 | private Date removed; |
| 64 | |
| 65 | @Column(name = "cleanup_needed") |
| 66 | private boolean needsCleanup = false; |
| 67 | |
| 68 | @Column(name = "network_domain") |
| 69 | private String networkDomain; |
| 70 | |
| 71 | @Column(name = "uuid") |
| 72 | private String uuid; |
| 73 | |
| 74 | @Column(name = "default_zone_id") |
| 75 | private Long defaultZoneId = null; |
| 76 | |
| 77 | @Column(name = "default") |
| 78 | boolean isDefault; |
| 79 | |
| 80 | @Column(name = "api_key_access") |
| 81 | private Boolean apiKeyAccess; |
| 82 | |
| 83 | public AccountVO() { |
| 84 | uuid = UUID.randomUUID().toString(); |
| 85 | } |
| 86 | |
| 87 | public AccountVO(long id) { |
| 88 | this.id = id; |
| 89 | uuid = UUID.randomUUID().toString(); |
| 90 | } |
| 91 |
nothing calls this directly
no outgoing calls
no test coverage detected