mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#615 - ENH: Change DDL generation with @SoftDelete to add 'default false' to column definition
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user