From 3794c608ad2fdd3fafb985917a3c8c6c9c62046a Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Fri, 9 Sep 2005 03:56:58 +0000 Subject: [PATCH] Remove setId(Long). This means access="field" needs to be used with Hibernate. --- .../domain/impl/PersistableEntityLong.java | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/domain/src/main/java/org/acegisecurity/domain/impl/PersistableEntityLong.java b/domain/src/main/java/org/acegisecurity/domain/impl/PersistableEntityLong.java index e7ad19ff95..31055eecf9 100644 --- a/domain/src/main/java/org/acegisecurity/domain/impl/PersistableEntityLong.java +++ b/domain/src/main/java/org/acegisecurity/domain/impl/PersistableEntityLong.java @@ -30,27 +30,12 @@ public abstract class PersistableEntityLong extends AbstractPersistableEntity { //~ Methods ================================================================ - /** - * DO NOT USE DIRECTLY. - * - *

- * Typically only used by the persistence layer, but provided with public - * visibility to not limit flexibility. - *

- * - * @param id the new instance identity - */ - public void setId(Long id) { - this.id = id; - } - /** * Obtains the persistence identity of this instance. - * - *

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.