Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink workbench and ManyToOne
EclipseLink workbench and ManyToOne [message #385996] Wed, 11 March 2009 22:02 Go to next message
Heiko Ahlig is currently offline Heiko AhligFriend
Messages: 62
Registered: July 2009
Member
Today I try to rebuild the model classes from the rcp example
(org.eclipse.persistence.example.jpa.comics.model.annotated) as
unnotaded POJO's and create the mapping by an xml-file.
For this I try to use the EclipseWorkbench, but to rebuild the mapping
of the Publisher in the Title class, I dont found a Button for the
mapping ManyToOne.

-->@ManyToOne(fetch=FetchType.LAZY)

Is ist possible that this only works with JPA 2.0 and the workbench
works only with JPA 1.0 or this error by me again. ;)

Thanks in advance,
Heiko
Re: EclipseLink workbench and ManyToOne [message #385999 is a reply to message #385996] Thu, 12 March 2009 07:38 Go to previous messageGo to next message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
Heiko,

The Workbench supports our native ORM mappings that pre-date JPA 1.0. The
output is our native XML mapping file can be used with JPA but is not part
of the standard. Generally the Workbench is not used by new projects
adopting JPA it is intended for existing users who have already been using
the Workbench from earlier TopLink releases.

If you wish to use XML configuration files with JPA I would recommend
using JPA's orm.xml mapping files. Using Dali you can create these files
and configure the mappings in a similar fashion to how you would configure
the annotations. We have published some examples of this:

http://wiki.eclipse.org/EclipseLink/Examples/JPA/EclipseLink -ORM.XML

http://wiki.eclipse.org/EclipseLink/Examples/JPA/EmployeeXML

Doug
Re: EclipseLink workbench and ManyToOne [message #386001 is a reply to message #385999] Thu, 12 March 2009 07:39 Go to previous messageGo to next message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
BTW: In our native ORM we use the 1:1 mapping with different configuration
options for both the 1:1 and M:1 scenarios defined by JPA.

Doug
Re: EclipseLink workbench and ManyToOne [message #386010 is a reply to message #386001] Thu, 12 March 2009 21:17 Go to previous message
Heiko Ahlig is currently offline Heiko AhligFriend
Messages: 62
Registered: July 2009
Member
Hi Doug,

thanks for your answers and tips.
I will look and test Dali.

Heiko


Am 12.03.2009 08:39, schrieb Doug Clarke:
> BTW: In our native ORM we use the 1:1 mapping with different
> configuration options for both the 1:1 and M:1 scenarios defined by JPA.
>
> Doug
>
Previous Topic:EclipseLink 1.1RC3 errors while testing rcp example
Next Topic:It is possible that I can use one entity for some tables?
Goto Forum:
  


Current Time: Fri Nov 28 22:10:26 GMT 2014

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

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