@MappedSuperclass
public class BaseEntity
extends Object
implements Serializable
A base class for all entities that ensures Serialization and PK generation.
A primer on annotations is below. More information can be obtained from the
Hibernate docs here:
http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/
Data schema:
name="columnName";
(1) boolean unique() default false;
(2) boolean nullable() default true;
(3) boolean insertable() default true;
(4) boolean updatable() default true;
(5) String columnDefinition() default "";
(6) String table() default "";
(7) int length() default 255;
(8) int precision() default 0; // decimal precision
(9) int scale() default 0; // decimal scale