@MappedSuperclass public abstract class StringIdObject extends Object implements Entity<String>
| Constructor and Description |
|---|
StringIdObject() |
StringIdObject(String id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
比较id,如果任一方id是null,则不相等
|
String |
getId()
Return Identifier
|
int |
hashCode()
Return 37 * 17 if id is null else id's hashCode
|
boolean |
isPersisted()
Return true if persisted
|
boolean |
isTransient()
Return false if persisted
|
void |
setId(String id)
Set new id
|
protected String id
public StringIdObject()
public StringIdObject(String id)
public boolean isPersisted()
EntityisPersisted in interface Entity<String>public boolean isTransient()
EntityisTransient in interface Entity<String>public int hashCode()
public boolean equals(Object object)
equals in class ObjectObject.equals(Object)Copyright © 2005–2018 The Beangle Software. All rights reserved.