wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes JPA: Type of ArrayList field in Entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA: Type of ArrayList field in Entity" Watch "JPA: Type of ArrayList field in Entity" New topic
Author

JPA: Type of ArrayList field in Entity

Parth Bhagat
Greenhorn

Joined: Mar 14, 2013
Posts: 7

Hello,

I am stuck with an issue while using Hibernate - JPA.

Issue is I am having an entry which is of type ArrayList. This ArrayList can have any type of values, but limited to some primitive ones + String + Timestamp.

My question here is what type I should use to store this kind of field in the Entity?
 
wood burning stoves
 
subject: JPA: Type of ArrayList field in Entity
 
Similar Threads
Error - org.hibernate.AnnotationException: No identifier specified for entity
@OrderBy annotation with simple types in JPA20
How to show multiple stereotypes?
Data size error - urgent
entity class is a Javabean?