jmendonca wrote:
Thanks for the response. I do not think I can use <join> as it is in v3.0, and I am here with 2.1. It seems that a many-to-one would be more appropriate anyway. Is it possible to make a UserType that can take the id and name from the referenced table and make it into a string for my favorite class?
I'm not sure about the UserType but you can map it as a m2o and just have your set method take the string from the aggregate object and store it in the project attribute.
Your POJO doesn't have to have attributes for each mapped field, just getters/setters for each one.
Be sure and specify cascade="none" so that there is no attempt to update the Project table.