K - Type of the primary key.@MappedSuperclass public abstract class AbstractEntity<K> extends Object implements Entity<K>
| Constructor and Description |
|---|
AbstractEntity()
Constructs an entity without the primary key being set.
|
AbstractEntity(K id)
Constructs a new entity with the specified primary key.
|
public AbstractEntity()
public AbstractEntity(K id)
id - The primary key.Copyright © 2013 dontdrinkandroot. All Rights Reserved.