mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 07:12:32 +00:00
Remove setId(Long). This means access="field" needs to be used with Hibernate.
This commit is contained in:
parent
35ca25f085
commit
3794c608ad
@ -30,27 +30,12 @@ public abstract class PersistableEntityLong extends AbstractPersistableEntity {
|
|||||||
|
|
||||||
//~ Methods ================================================================
|
//~ 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.
|
* Obtains the persistence identity of this instance.
|
||||||
*
|
|
||||||
* <p>Marked as abstract to remind users to implement. They'll need to implement
|
|
||||||
* so their annotations reflect the correct sequence name.
|
|
||||||
*/
|
*/
|
||||||
public abstract Long getId();
|
public Long getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DO NOT USE DIRECTLY.
|
* DO NOT USE DIRECTLY.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user