Package ejava.projects.eleague.bo
Class Address
- java.lang.Object
-
- ejava.projects.eleague.bo.Address
-
- All Implemented Interfaces:
Serializable
@Entity public class Address extends Object implements Serializable
This class provides a thin example of how to setup an Address business object class for the project. Only a few fields are mapped and we will make full use of JPA annotations over an orm.xml file in this example.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
city
private long
id
private static long
serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCity()
long
getId()
void
setCity(String city)
private void
setId(long id)
String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private long id
-
city
private String city
-
-
Constructor Detail
-
Address
public Address()
-
Address
public Address(long id)
-
Address
public Address(long id, String city)
-
-