I have one to many relationship between screen and screenacess.
My hbm files are
And i am calling like this
But i am getting following excpetion:
Please tell me where i am wrong.
posted 5 years ago
In your mapping file, ScreenTb class has a one-to-many relation with AccessTb class. But in the SClient.java, you are trying to save string objects in the set instead of
When you save screenTB, hibernate also will try to save accessTbs colleaction (cascade effect). But it will fail because , the collection contains Strings instead of our mapped entities (AcccessTb). Try to add AccessTB objects to the set and see.
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