my dear friends:
i think it for 3 days,but i can't solve it,please help me!
person-->author(one-to-one)
id of person is manually assigned by code of java
id of author is auto assigned by id of person (because:id of person is primary key,id of author is a foreign key)
OK,one-to-one is over next,i show my many-to-many
author<-->work(many-to-many)
▆◣attend to the author is the same entity to the above author
also,id of the author is auto assigned by id of person,but id of work is manually assigned by code of java
I Don't know did hibernate can treat this situation,i write code ,i ran ok in one-to-one,one-to-many,but in many-to-many,i got the error code:ids for this class must be manually assigned before calling save() work.....,
but i realy did manually assigned the id of work!!
i think it for 3 days,but i can't solve it,please help me!
the whole code is in the link:
http://forum.hibernate.org/viewtopic.ph ... 10#2192810
thanks a lot