-
- Direct Known Subclasses:
- Album, Shape, ToothPaste
@MappedSuperclass
public abstract class BaseObject
extends Object
This class provides an example of a non-entity base class that can be
mapped into tables defined by entities that derive from this class.
-
-
Field Summary
Fields
Modifier and Type |
Field and Description |
private long |
id |
private long |
version |
-
Constructor Summary
Constructors
Constructor and Description |
BaseObject() |
-
-
Field Detail
-
version
private long version
-
Constructor Detail
-
BaseObject
public BaseObject()
-
Method Detail
-
getId
public long getId()
-
getVersion
public long getVersion()
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.