I have got the problem in mapping 2 properties to a composite unique key in hibernate. The target sql script should be like this:
acl_object_identity, recipient are the composite unique key. what I have done is introduce a new class which contains acl_object_identity, recipient,and put the new class as composite-element in my mapping file.
that works. but make my domain object very ugly.
Anyone can give me a hint about how to do it in a nice way. I am quite new to hibernate.