Large objects (BLOB) [message #612629] |
Wed, 21 November 2007 05:32 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03626 seconds