Add setId(Long) back into class, as Hibernate 3.0.5 gives Lazy Initialization Exception if using field="access" when trying to do a getId() on a lazily loaded association.

This commit is contained in:
Ben Alex 2005-09-09 06:10:13 +00:00
parent ddd69c751f
commit be578c99d1
1 changed files with 15 additions and 0 deletions

View File

@ -30,6 +30,21 @@ public abstract class PersistableEntityLong extends AbstractPersistableEntity {
//~ Methods ================================================================
/**
* DO NOT USE DIRECTLY.
*
* <p>
* Typically only used by the persistence layer, but provided with public
* visibility to not limit flexibility.
* </p>
*
* @param id the new instance identity
*/
public void setId(Long id) {
this.id = id;
}
/**
* Obtains the persistence identity of this instance.
*/