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:
parent
ddd69c751f
commit
be578c99d1
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue