Package hellojpa
Class Message
- java.lang.Object
-
- hellojpa.Message
-
@Entity public class Message extends java.lang.ObjectA 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetCreated()longgetId()java.lang.StringgetMessage()voidsetCreated(java.util.Date date)voidsetId(long val)voidsetMessage(java.lang.String msg)
-