Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Xdoclet : how to mapping Enum in Java to Hibernate hbm.xml

 
Jeffrey Hsu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code:

[Rating.java]
public enum Rating {
Public, Normal, Private;
}

[Message.java]
public class Message {
private Rating rating;
...
/**
* @hibernate.property
* ??how to write??
*
*/
public Rating getRating() {
return rating;
}
...
}

thanks for your answer.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to the Object Relational Mapping forum which is more suitable for Hibernate questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic