Remove Validation and LDAP features

This commit is contained in:
Robin Bygrave
2013-04-09 00:05:42 +12:00
parent fb28c641d0
commit 9f624ec2bf
27 changed files with 132 additions and 609 deletions
@@ -8,8 +8,7 @@ import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Version;
import com.avaje.ebean.validation.Length;
import javax.validation.constraints.Size;
/**
* Address entity bean.
@@ -21,15 +20,15 @@ public class Address {
@Id
Short id;
@Length(max=100)
@Size(max=100)
@Column(name="line_1")
String line1;
@Length(max=100)
@Size(max=100)
@Column(name="line_2")
String line2;
@Length(max=100)
@Size(max=100)
String city;
Timestamp cretime;
@@ -3,10 +3,10 @@ package com.avaje.tests.model.basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import com.avaje.ebean.annotation.CacheStrategy;
import com.avaje.ebean.annotation.CacheTuning;
import com.avaje.ebean.validation.Length;
/**
* Country entity bean.
@@ -18,10 +18,10 @@ import com.avaje.ebean.validation.Length;
public class Country {
@Id
@Length(max=2)
@Size(max=2)
String code;
@Length(max=60)
@Size(max=60)
String name;
public String toString() {
@@ -11,11 +11,11 @@ import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.avaje.ebean.annotation.EnumMapping;
import com.avaje.ebean.annotation.Where;
import com.avaje.ebean.validation.Length;
import com.avaje.ebean.validation.NotNull;
/**
* Customer entity bean.
@@ -46,11 +46,11 @@ public class Customer extends BasicDomain {
Status status;
@NotNull
@Length(max=40)
@Size(max=40)
//@Column(length=39,nullable=false)
String name;
@Length(max=100)
@Size(max=100)
String smallnote;
Date anniversary;
@@ -19,12 +19,12 @@ import javax.persistence.OrderBy;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Version;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlType;
import com.avaje.ebean.annotation.CreatedTimestamp;
import com.avaje.ebean.annotation.Formula;
import com.avaje.ebean.annotation.Where;
import com.avaje.ebean.validation.NotNull;
/**
* Order entity bean.
@@ -11,8 +11,7 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.avaje.ebean.validation.NotNull;
import javax.validation.constraints.NotNull;
@Entity(name = "Phone")
@Table(name = "PHONES")
@@ -7,10 +7,10 @@ import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import javax.validation.constraints.Size;
import com.avaje.ebean.annotation.CacheStrategy;
import com.avaje.ebean.annotation.CreatedTimestamp;
import com.avaje.ebean.validation.Length;
/**
* Product entity bean.
@@ -25,7 +25,7 @@ public class Product implements Serializable {
@Id
Integer id;
@Length(max=20)
@Size(max=20)
String sku;
String name;
@@ -2,8 +2,7 @@ package com.avaje.tests.model.basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import com.avaje.ebean.validation.NotEmpty;
import javax.validation.constraints.NotNull;
@Entity
public class TWithPreInsert {
@@ -11,7 +10,7 @@ public class TWithPreInsert {
@Id
private Integer id;
@NotEmpty
@NotNull
private String name;
private String title;