Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Large objects (BLOB)
Large objects (BLOB) [message #612629] Wed, 21 November 2007 10:32
Alex Mising name is currently offline Alex Mising nameFriend
Messages: 149
Registered: March 2010
Senior Member
Hi,

I'm trying to persist binary objects using Teneo. What's the suggested
method of doing that? I tried using the EByteArray data type, as it was
the closest one to a BLOB I could find. Here's an example model:

<eClassifiers xsi:type="ecore:EClass" name="Document">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="filename"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="content"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EByteArray"/>
</eClassifiers>

Teneo creates a table "document_content" and creates a row each byte in
the array.

The only relevant documentation I found was:
http://www.elver.org/hibernate/ejb3_features.html#lob_notes
My model is not written as an XML schema. How does this map to a .ecore
specification?

P.S. I use hibernate 3.2.5 and Derby as the database backend.
Previous Topic:[Teneo] Timeout after 8 hours
Next Topic:[Ecore Tools] Inconsistencies building from CVS
Goto Forum:
  


Current Time: Fri Apr 26 23:27:38 GMT 2024

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

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

Back to the top