Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Mapping

 
rahultiwary tiwari
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
I have a problem in hibernate mapping of List of Enum.
I have a enum Class as follows:
public enum IntelligenceType {


LOGICAL_MATHEMATICAL,SPATIAL,LINGUISTIC,BODILY_KINESTHITIC,MUSICAL,INTERPERSONAL, INTERAPERSONAL, NATURALISTIC, EXISTENTIAL;

}
then i have another class that uses this enum:



public class Hobby {


private String hobbyName;

private int hobbyExpertiseLevel;

private List<IntelligenceType> associatedIntelligenceTypeList;

//--------------------some other bunch of code goes down


}
i want to know that how to create the HBM file of list of enums..
Thanks in Advance.






 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like the ORM forum would be better suited for this question, so I shall move it there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic