Hibernate version: 3.2.2
Mapping documents: Use of Annotations
Name of the database you are using: Oracle
Hi all,
I have a class that holds a status.
This Status has been implemented as an Enum class.
I wanted to map this as a "out of the box" String enumeration but after declaring the property with the following annotation :
@Enumerated(EnumType.STRING) : I get no string in my DB, I've tried to set the column to NVARCHAR2 but I just get one long string of characters as value...
What am i doing wrong here ?
In short, I just made a class A that extends from Enum and a class B that holds a property of type A mapped as stated above...
Or is there a smarter way to map Enumerations ?
Thx in advance.
|