#615 - ENH: Change DDL generation with @SoftDelete to add 'default false' to column definition

This commit is contained in:
Robin Bygrave
2016-03-23 11:10:35 +13:00
parent 90ee903c52
commit 7d89b97e2b
28 changed files with 212 additions and 60 deletions
@@ -6,7 +6,6 @@ import com.avaje.ebean.annotation.WhenCreated;
import com.avaje.ebean.annotation.WhenModified;
import org.joda.time.DateTime;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@@ -17,7 +16,6 @@ public abstract class BaseModel extends Model {
protected Long id;
@SoftDelete
@Column(name = "deleted", nullable = false, columnDefinition = "BOOLEAN DEFAULT FALSE")
protected boolean deleted;
@WhenCreated
@@ -21,7 +21,6 @@ public class Cover extends Model {
protected Long id;
@SoftDelete
@Column(name = "deleted", nullable = false, columnDefinition = "BOOLEAN DEFAULT FALSE")
protected boolean deleted;
protected String s3Url;