org.ujoframework.orm.sample
Class Order
java.lang.Object
org.ujoframework.extensions.AbstractUjo
org.ujoframework.implementation.quick.QuickUjo
org.ujoframework.implementation.orm.OrmTable<Order>
org.ujoframework.orm.sample.Order
- All Implemented Interfaces:
- UjoCloneable, UjoTextable, OrmUjo, Ujo
public class Order
- extends OrmTable<Order>
The column mapping to DB table ORDER (a sample of usage).
Note, that the Order object has got an collection of Items.
| Fields inherited from class org.ujoframework.implementation.quick.QuickUjo |
data |
|
Constructor Summary |
Order()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ID
public static final UjoProperty<Order,java.lang.Long> ID
- Unique key
USER_ID
public static final UjoProperty<Order,java.lang.Integer> USER_ID
- User key
DESCR
public static final UjoProperty<Order,java.lang.String> DESCR
- Description of the order
CREATED
public static final UjoProperty<Order,java.util.Date> CREATED
- Date of creation
ITEMS
public static final RelationToMany<Order,Item> ITEMS
- References to Itemsr
Order
public Order()
getId
public java.lang.Long getId()
setId
public void setId(java.lang.Long id)
getUsrId
public java.lang.Integer getUsrId()
setUsrId
public void setUsrId(java.lang.Integer usrId)
getDescr
public java.lang.String getDescr()
setDescr
public void setDescr(java.lang.String descr)
getDate
public java.util.Date getDate()
setDate
public void setDate(java.util.Date date)
getItems
public UjoIterator<Item> getItems()
Copyright © 2009. All Rights Reserved.