I have a plugin for Eclipse and generated 2 classes from Reverse Engineering.I am having primary key in database table which consist of 2 columns.
Now in my first class which is generated in that all configuration is done properly like:
Now as i am having primay key is a combination of 2 columns column B and Column C , so following code is been written for that:
So the above 2 fields b and c are defined in seprate class with annotation @Embeddable.
Now my question is that i want to write a named native query @NamedNativeQuery. How to write the query as the variable c is present in one class and variable b and c are in different class that serve as for the combination primary key.
posted 9 years ago
Why don't you try some query , starting with a simple "select * ..."? There is some chance that you'll get what you need.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads