Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ArjunReddy
Post subject: MyEclipse 7.1.1 OpenJPA Support (One-To-Many Mappings etc...  PostPosted: Apr 08, 2009 - 10:56 PM



Joined: Apr 08, 2009
Posts: 5

Hi All,

I recently downloaded a trail version of MyEclipse 7.1.1 IDE and I found it EXTREMELY Useful. I was using it for OpenJPA coding (Followed this tutorial http://www.myeclipseide.com/documentation/quickstarts/jpa/ and did it for OpenJPA even though it was mentioned for JPA in there) and all my DAOclasses and POJO classes have been auto generated by the IDE itself. The Mappings like One-To-Many etc... have been auto generated too when I checked the “Enable One-To-One detection” and “Enable Many-To-Many detection”.

Now my question starts here,
When I checked both of them, My code has all these new relationships defined. The confusing part is, How does MyEclipse detect which mapping to put into our code? I checked both of those above but my code has 1: N and N: 1 mappings and there is no sign of “One-To-One” or “Many-To-Many” mappings. How does this work?

Please advice as this is very confusing to me.

Thanks.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: MyEclipse 7.1.1 OpenJPA Support (One-To-Many Mappings et  PostPosted: Apr 10, 2009 - 08:09 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Can you please explain what do you mean by "all these new relationships defined" part? Are the relationships defined wrong or are you just curious how we detect all that stuff?

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
ArjunReddy
Post subject: Re: RE: MyEclipse 7.1.1 OpenJPA Support (One-To-Many Mapping  PostPosted: Apr 11, 2009 - 08:15 PM



Joined: Apr 08, 2009
Posts: 5

support-nipun wrote:
Can you please explain what do you mean by "all these new relationships defined" part? Are the relationships defined wrong or are you just curious how we detect all that stuff?


Hi Nipun,

I meant these @OneToMany, @ManyToOne etc... in my code which I have not defined but got generated automatically by MyEclipse. I am just curious how MyEclipse decides on which relationship to define in our code based on the table names we supply to it. If you could tell me that, it would really help a lot.

Thanks.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Re: RE: MyEclipse 7.1.1 OpenJPA Support (One-To-Many Map  PostPosted: Apr 13, 2009 - 10:54 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Oh, it actually queries the database structure and FK relationships between tables and cols to determine how those get translated to actual annotations.

If you use the DB Explorer to generate the DDL for the tables, you should see in the CREATE TABLE statements, the different FK references and what not that MyEclipse is detecting.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
gang.yang
Post subject: Is workspace from MyEclipse 5.5.1 compatible with 7.1.1?  PostPosted: Jul 08, 2009 - 02:32 PM



Joined: Jul 06, 2009
Posts: 12

We have recently upgraded from MyEclipse 5.5.1 to 7.1.1. I continued to use the workspace and projects from 5.5.1. I notices some changes in the package explorer display. For example, the EJB3 project name, which belong to an Enterprise parent project, was no longer displayed using the project name. Instead, it was displayed as "Project". Also I had some hard time to debug. MyEclipse 7.1.1 failed to stop at some break points no matter what I do. I'm wonder if 7.1.1 is backword compatible with 5.1.1's workspace. Any thing I need to do to upgrade the workspace?

Thanks,
Gang
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Is workspace from MyEclipse 5.5.1 compatible with 7.1.1?  PostPosted: Jul 09, 2009 - 01:43 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013


_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits