Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Problem with StringToStringMap and @Lob @Column Annotation
[Teneo] Problem with StringToStringMap and @Lob @Column Annotation [message #616108] Tue, 08 April 2008 16:09
Eclipse UserFriend
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
Previous Topic:[Teneo] Annotation in ecore model (foreign key and annotation for options)
Next Topic:Need to access two databases in same JVM
Goto Forum:
  


Current Time: Thu Nov 06 23:37:44 EST 2025

Powered by FUDForum. Page generated in 0.04887 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top