problem is defining named queries in an interface and use them in an enity
posted 8 years ago
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.