Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

eclipse JPA - recreating JPA Entities re-writes classes - is there an alternative?

 
nicolas diogo
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

i think this is something that i am missing when using eclipse to create/recreate my JPA entities' classes.

if i decide to recreate the entities eclipse will overwrite them and destroy any @NamedQuery that i have added.
is there some configuration in eclipse that would allow for me to change this behaviour?
i am sure that netbeans keeps @NamedQuery when recreating JPA entities.

thanks.
 
nicolas diogo
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so eclipse just overwrites all entity classes?
is that right?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!