aspose file tools
The moose likes Object Relational Mapping and the fly likes Hibernate Mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate Mapping" Watch "Hibernate Mapping" New topic
Author

Hibernate Mapping

rahultiwary tiwari
Greenhorn

Joined: Aug 15, 2012
Posts: 12
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
Bartender

Joined: Aug 22, 2010
Posts: 2384
    
    3

Looks like the ORM forum would be better suited for this question, so I shall move it there.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Hibernate Mapping
 
Similar Threads
org.hibernate.InvalidMappingException
Mapping java.util.List
[JPA - Hibernate] Mapping Enum to Column
Help for Mapping tow BOs
enum confusion