Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] change ORM generation schema
[TEXO] change ORM generation schema [message #623112] Thu, 05 August 2010 10:31 Go to next message
Eclipse UserFriend
Hi,

I tried Texo using JPA and it worked well. I have seen the orm.xml refers to
xmlns:orm="http://www.eclipse.org/eclipselink/xsds/persistence/orm" version="2.1"

The JEE glassfish server creates an orm.xml that refers to:
version="2.0" xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"

Can I change the schema in Texo?

I want to persist EMF model objects on an JEE server using JPA. For this I use TEXO and the ModelEMFConverter.
If I load an object from the database, I get an POJO which will be converted by the ModelEMFConverter, which returns a DynamicEObject.

Is there a way to convert the dynamic object into my model instance?

Last question. Is there any documentation, how to extend TEXO to generate for example wsdl, web.xml? Does it all work with xpand or do you use m2m transformation to generate the orm.xml?

Thanks for Texo!!

Regards,
Mark
Re: [TEXO] change ORM generation schema [message #623115 is a reply to message #623112] Thu, 05 August 2010 14:45 Go to previous message
Eclipse UserFriend
Hi Mark,
See comments inline.

gr. Martin

On 08/05/2010 04:31 PM, Mark Hoffmann wrote:
> Hi,
>
> I tried Texo using JPA and it worked well. I have seen the orm.xml
> refers to
> xmlns:orm="http://www.eclipse.org/eclipselink/xsds/persistence/orm"
> version="2.1"
>
> The JEE glassfish server creates an orm.xml that refers to:
> version="2.0" xmlns="http://java.sun.com/xml/ns/persistence/orm"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
> http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"
>
> Can I change the schema in Texo?
MT>> Hmm, not really.. I have had another request to support standard JPA/orm.xml instead of the EclipseLink specific
version. So I have thought about doing that.
But what do you mean with the 'jee glassfish server creates an orm.xml', you mean that the glassfish server expects that
the orm.xml should have this namespace?


>
> I want to persist EMF model objects on an JEE server using JPA. For this
> I use TEXO and the ModelEMFConverter.
> If I load an object from the database, I get an POJO which will be
> converted by the ModelEMFConverter, which returns a DynamicEObject.
>
> Is there a way to convert the dynamic object into my model instance?
MT>> the EMFModelConverter :-)
http://wiki.eclipse.org/Texo/Convert_to_EMF

>
> Last question. Is there any documentation, how to extend TEXO to
> generate for example wsdl, web.xml? Does it all work with xpand or do
> you use m2m transformation to generate the orm.xml?
MT>> Currently Texo is xpand based. See here for pointers on how to extend the code generation:
http://wiki.eclipse.org/Texo/Template_Overriding
Also specifically this part:
http://wiki.eclipse.org/Texo/Template_Overriding#Templates_t o_override

Btw, if you have specific ideas on a different override/extend mechanism then let me know!


>
> Thanks for Texo!!
MT>> yaw!
>
> Regards,
> Mark
>
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:Provide ResourceSet to ecore editor
Next Topic:eoperation in ecore diagram
Goto Forum:
  


Current Time: Tue Nov 11 23:24:16 EST 2025

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

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

Back to the top