Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CompositeUserType mapping int[]

 
Pierre Sugar
Ranch Hand
Posts: 62
Java Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a class that has an int[] array and a HashSet<Date> I want to map with a CompositeUserType. I find all kinds of hibernate types like hibernate.INTEGER but there is no array or set type. Can anybody tell me what type to use or how to map an array and a Set?

Here is the property names and types of my CompositeUserType class



Thanks a lot for your help
Pierre
 
Francois Nadeau
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Pierre,

Here is a link which shows how to map an array in Hibernate.

Sorry, I am not sure what you are trying to do with the types.

Cheers,

Francois
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic