Google News
logo
JPA - Interview Questions
What data types are allowed in the attributes of the Entity class (fields or properties)?
Valid attribute types for Entity classes are :
 
* primitive types and their Java wrappers,
* strings,
* any Java serializable types (implementing the Serializable interface),
* enums;
* entity types;
* embeddable classes
* and collection types 1-6
Advertisement