Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Mapping and custom entities
Mapping and custom entities [message #434815] Thu, 27 March 2008 14:30 Go to next message
Alexander Koezle is currently offline Alexander KoezleFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I'm working currently on the EMF based ORM concept and looking for a
tool/framework to enable the JPA mapping for my own ("custom") Ecore based
entity model. So I have two questions in that context to the Dali project:

1. Can I use the JPA Structure/Details views to maintain the mapping
information for something other as Java bean classes (for my custom
entities)?

2. Can I reference the JPA mapping Ecore elements (core.ecore
core#mappings.ecore) from my entity model to handle the mapping stuff? The
models and the generated model code are located in the internal packages
of Dali and can't be accessed from outside.

I'd be obliged for an answer or a hint,
regards,
Alexander
Re: Mapping and custom entities [message #434821 is a reply to message #434815] Fri, 28 March 2008 18:24 Go to previous message
Shaun Smith is currently offline Shaun SmithFriend
Messages: 197
Registered: July 2009
Senior Member
Alexander Koezle wrote:

> I'm working currently on the EMF based ORM concept and looking for a
> tool/framework to enable the JPA mapping for my own ("custom") Ecore based
> entity model.

Hi Alexander,

FYI the EMFT Teneo project is working on EclipseLink JPA base
persistence for EMF. In fact just this week Stephan Eberle and I just
submitted our code for an IP review so it should be available for you to
try out very soon. Once we've checked it into the Teneo CVS repository
I'll be emailing the EclipseLink and EMFT mailing lists and forums to
announce it. I can also cross-post to the Dali list and forum.

I'll answer your questions below in the context of Teneo/EclipseLink JPA:

> 1. Can I use the JPA Structure/Details views to maintain the mapping
> information for something other as Java bean classes (for my custom
> entities)?

You can use Dali to perform mapping of EMF classes generated from an ecore
model. However Dali needs support for binary class mapping to support
mapping EObject properties. This feature is on the Dali schedule. To
keep things tidy and allow for easy regeneration I suggest you stick to
XML based mapping and avoid Annotations.

> 2. Can I reference the JPA mapping Ecore elements (core.ecore
> core#mappings.ecore) from my entity model to handle the mapping stuff? The
> models and the generated model code are located in the internal packages
> of Dali and can't be accessed from outside.

I'm afraid I don't know enough about ecore to comment. My focus has been
on mapping classes generated from an ecore model.

> I'd be obliged for an answer or a hint,
> regards,
> Alexander

We're looking for more participants on Teneo so if you're interested in
EMF persistence with JPA I'd encourage you to join the emft-dev mailing
list and download the code when it's available!

--Shaun
Re: Mapping and custom entities [message #609887 is a reply to message #434815] Fri, 28 March 2008 18:24 Go to previous message
Shaun Smith is currently offline Shaun SmithFriend
Messages: 197
Registered: July 2009
Senior Member
Alexander Koezle wrote:

> I'm working currently on the EMF based ORM concept and looking for a
> tool/framework to enable the JPA mapping for my own ("custom") Ecore based
> entity model.

Hi Alexander,

FYI the EMFT Teneo project is working on EclipseLink JPA base
persistence for EMF. In fact just this week Stephan Eberle and I just
submitted our code for an IP review so it should be available for you to
try out very soon. Once we've checked it into the Teneo CVS repository
I'll be emailing the EclipseLink and EMFT mailing lists and forums to
announce it. I can also cross-post to the Dali list and forum.

I'll answer your questions below in the context of Teneo/EclipseLink JPA:

> 1. Can I use the JPA Structure/Details views to maintain the mapping
> information for something other as Java bean classes (for my custom
> entities)?

You can use Dali to perform mapping of EMF classes generated from an ecore
model. However Dali needs support for binary class mapping to support
mapping EObject properties. This feature is on the Dali schedule. To
keep things tidy and allow for easy regeneration I suggest you stick to
XML based mapping and avoid Annotations.

> 2. Can I reference the JPA mapping Ecore elements (core.ecore
> core#mappings.ecore) from my entity model to handle the mapping stuff? The
> models and the generated model code are located in the internal packages
> of Dali and can't be accessed from outside.

I'm afraid I don't know enough about ecore to comment. My focus has been
on mapping classes generated from an ecore model.

> I'd be obliged for an answer or a hint,
> regards,
> Alexander

We're looking for more participants on Teneo so if you're interested in
EMF persistence with JPA I'd encourage you to join the emft-dev mailing
list and download the code when it's available!

--Shaun
Previous Topic:Generate Entities Problem w/ MySQL
Next Topic:Dali & facets / natures
Goto Forum:
  


Current Time: Sat Apr 27 03:52:08 GMT 2024

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

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

Back to the top