Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Object Relational Mapping
Hibernate Xdoclet : how to mapping Enum in Java to Hibernate hbm.xml
Jeffrey Hsu
Greenhorn
Posts: 1
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm going to move this to the
Object Relational Mapping
forum which is more suitable for Hibernate questions.
Everybody's invited. Even this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Porting my enum type from Hibernate2 to Hibernate3
enum static methods
Nested Enums and Classes
Storing Enum Types
Storing enums in database
More...