• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem is defining named queries in an interface and use them in an enity

 
anish reddy
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iam using ide as netbeans at the first instance i use persistent manager,by using persistent manager i generated all the entities from db (ie tables) after some usage i have written own named queries corresponding to an entity.Again now if i regenerate the enities using persistent manager all entities are overriden and iam unable to remember the named queries i have written in each entity.
To overcome this problem i want all the named queries to be written in an interface and use them in corressponding enity.
so please can you tell how to write named queries in an interface and use them directly in corresponding entity as named queries.

I want to perform operation using those named queries that i define in interface.

waiting for help



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic