net.bryansaunders.jee6divelog.model
Class DiveLogEntity

java.lang.Object
  extended by net.bryansaunders.jee6divelog.model.DiveLogEntity
Direct Known Subclasses:
UserAccount

@MappedSuperclass
public class DiveLogEntity
extends java.lang.Object

Base Entity Element for all DiveLog Entities.

Author:
Bryan Saunders

Constructor Summary
DiveLogEntity()
           
 
Method Summary
 java.util.Date getCreated()
          Get the created.
 java.lang.Integer getId()
          Get the id.
 java.util.Date getUpdated()
          Get the updated.
 java.lang.Integer getVersion()
          Get the version.
protected  void onCreate()
          Pre-Persist Logic.
protected  void onUpdate()
          Pre-Update Logic.
 void setCreated(java.util.Date newCreated)
          Set the created.
 void setId(java.lang.Integer newId)
          Set the id.
 void setUpdated(java.util.Date newUpdated)
          Set the updated.
 void setVersion(java.lang.Integer newVersion)
          Set the version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiveLogEntity

public DiveLogEntity()
Method Detail

onCreate

protected void onCreate()
Pre-Persist Logic.


onUpdate

protected void onUpdate()
Pre-Update Logic.


getId

public java.lang.Integer getId()
Get the id.

Returns:
the id

setId

public void setId(java.lang.Integer newId)
Set the id.

Parameters:
newId - the id to set

getVersion

public java.lang.Integer getVersion()
Get the version.

Returns:
the version

setVersion

public void setVersion(java.lang.Integer newVersion)
Set the version.

Parameters:
newVersion - the version to set

getCreated

public java.util.Date getCreated()
Get the created.

Returns:
the created

setCreated

public void setCreated(java.util.Date newCreated)
Set the created.

Parameters:
newCreated - the newCreated to set

getUpdated

public java.util.Date getUpdated()
Get the updated.

Returns:
the updated

setUpdated

public void setUpdated(java.util.Date newUpdated)
Set the updated.

Parameters:
newUpdated - the updated to set


Copyright © 2012 Bryan Saunders. All Rights Reserved.