hellojpa
Class Message

java.lang.Object
  extended by hellojpa.Message

@Entity
public class Message
extends Object

A very simple persistent entity that holds a "message", has a "created" field that is initialized to the time at which the object was created, and an id field that is initialized to the current time.


Constructor Summary
Message()
           
Message(String msg)
           
 
Method Summary
 Date getCreated()
           
 long getId()
           
 String getMessage()
           
 void setCreated(Date date)
           
 void setId(long val)
           
 void setMessage(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message()

Message

public Message(String msg)
Method Detail

setId

public void setId(long val)

getId

public long getId()

setMessage

public void setMessage(String msg)

getMessage

public String getMessage()

setCreated

public void setCreated(Date date)

getCreated

public Date getCreated()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.