Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * A cool book entity
- */
- component persistent="true" table="book"{
- // Primary Key
- property name="id" fieldtype="id" column="id" generator="native" setter="false";
- property name="name" default="";
- // Properties
- // Validation
- this.constraints = {
- // Example: age = { required=true, min="18", type="numeric" }
- };
- // Constructor
- function init(){
- return this;
- }
- }
Add Comment
Please, Sign In to add comment