Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF TENEO] Placing and naming external xml mapping file(What to name and where to place my external mapping file)
[EMF TENEO] Placing and naming external xml mapping file [message #963459] Mon, 29 October 2012 20:56 Go to next message
Duncan Krebs is currently offline Duncan KrebsFriend
Messages: 31
Registered: June 2011
Location: Bay Area / Mexico
Member

Hi,
I would like to put my custom hibernate mapping attributes in an xml file for ecore models that are getting persisted with Teneo/Hibernate. I found examples of syntax but not sure on what to name the xml file for example: If my ecore file name is people.ecore, I assume I would place the xml file in the same folder but not sure what to name it. Also do I have to do any other configuration for teneo to pick up my xml file or does it look based on naming by default? Thanks for any tips! - Duncan
Re: [EMF TENEO] Placing and naming external xml mapping file [message #963481 is a reply to message #963459] Mon, 29 October 2012 21:11 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Duncan,
See the Teneo options:
http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options

and then this one:
teneo.mapping.persistence_xml

it can contain the full resourcepath (incl. the name) of the xml file.

gr. Martin

On 10/29/2012 09:56 PM, Duncan Krebs wrote:
> Hi, I would like to put my custom hibernate mapping attributes in an xml file for ecore models that are getting
> persisted with Teneo/Hibernate. I found examples of syntax but not sure on what to name the xml file for example: If my
> ecore file name is people.ecore, I assume I would place the xml file in the same folder but not sure what to name it.
> Also do I have to do any other configuration for teneo to pick up my xml file or does it look based on naming by
> default? Thanks for any tips! - Duncan


--

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@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [EMF TENEO] Placing and naming external xml mapping file [message #963490 is a reply to message #963481] Mon, 29 October 2012 21:24 Go to previous message
Duncan Krebs is currently offline Duncan KrebsFriend
Messages: 31
Registered: June 2011
Location: Bay Area / Mexico
Member

Martin,

Thanks for the link. - Duncan
Previous Topic:EGF status?
Next Topic:UI generation of EMF model
Goto Forum:
  


Current Time: Thu Apr 18 07:40:36 GMT 2024

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

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

Back to the top