ashneyde wrote:
I was just surprised thathibernate would do it by default. But get should it for me. thanks.
Read section 11.3 (in the 3.0.5 docs) for a detailed explanation.
The reason for the proxy for known objects is that it allows you to associate an object with another without actually doing the database call if you don't need to.
For example, you know that PERSON_TYPE_ID=1 indicates that the Person Object is for a Client, as opposed to an Employee. You could create a new Client Object, set it's personType attribute to the Proxy of PersonType id=1, and save it without having to ever read the PERSON_TYPE row from the database.