Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:09
Kai Schlamp is currently offline Kai SchlampFriend
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
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: Fri Jun 25 11:27:28 GMT 2021

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

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

Back to the top