Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 4661f05

Browse files
committed
Made RetailCustomer Inherit from IdentifiedObject
1 parent c6ff6c5 commit 4661f05

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/org/energyos/espi/common/domain/RetailCustomer.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013 EnergyOS.org
2+
* Copyright 2013, 2014 EnergyOS.org
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -61,7 +61,7 @@
6161

6262
})
6363

64-
public class RetailCustomer implements UserDetails, Principal{
64+
public class RetailCustomer extends IdentifiedObject implements UserDetails, Principal{
6565

6666
public final static String QUERY_FIND_BY_ID = "RetailCustomer.findById";
6767
public final static String QUERY_FIND_ALL = "RetailCustomer.findAll";
@@ -73,11 +73,13 @@ public class RetailCustomer implements UserDetails, Principal{
7373
public final static String ROLE_USER = "ROLE_USER";
7474
public final static String ROLE_CUSTODIAN = "ROLE_CUSTODIAN";
7575

76+
/*
7677
@Id
7778
@GeneratedValue(strategy = GenerationType.IDENTITY)
7879
@XmlTransient
7980
protected Long id;
80-
81+
*/
82+
8183
@Column(name = "username")
8284
@Size(min = 4, max = 30)
8385
protected String username;

0 commit comments

Comments
 (0)