[Teneo] Problem with StringToStringMap and @Lob @Column Annotation [message #616108] |
Tue, 08 April 2008 20:09 |
Kai Schlamp Messages: 344 Registered: July 2009 |
Senior Member |
|
|
Hello.
I have a little problem when persisting an EMF StringToStringMap with
Teneo/Hibernate.
I defined the map as stated at
http://wiki.eclipse.org/EMF/FAQ#How_do_I_create_a_Map_in_EMF .3F
Everything works fine, but when I add the teneo.jpa annotation @Lob
@Column(length=100000) for the "value" field of the map, Teneo doesn't
create the table for this map anymore.
The above annotation works as exspected when used for other EMF class
fields (the table is created correctly and Derby uses CLOB instead of
VARCHAR). Only a StringToStringMap resp. any map has the problem not
accepting this annotation.
Another thing ... the naming scheme for maps seems to be a bit other than
for usual EMF objects.
Let's presume the model looks like below:
Document
|-properties:StringToStringMap
|-type:DocumentType (a ref to another EMF class)
|-content:String
Then Teneo/Hibernate creates the following tables (without specifying any
special naming via "@Column"): document, PROPERTIES, documenttype,
documentcontent.
Is there a reason why Hibernate names properties upper case and without
"document"?
Best regards,
Kai
|
|
|
Powered by
FUDForum. Page generated in 0.02925 seconds