File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA: Type of ArrayList field in Entity