I'm relatively new to Hibernate and ORM world and having absolutely zero knowledge in JPA and annotations. I did some programming in Hibernate for my learning purpose but have not really used composite keys. I'm not sure, if this thread is the right thread for that, but would like to utilize the conversation already started.
1) Is there any alternative way to declare the composite keys using mapping xmls? If so, a small example is appreciated.
2) When we say session.save(object), it returns a serializable object identity. How would this behave, when I have composite keys in the database?