By default if I create a field in an entity like:
@NotNull
boolean myBoolean;
And I let Hibernate auto-create my tables. What Oracle data t
This is what you really need
Java POJO:
//@Type(type="true_false") //not working for '1' and '0' in NUMERIC(1) field
@Type(type= "org.hibernate.type.NumericBooleanType")
@NotNull(message="NOT_NULL")
@Column(name = "IS_DELEGATION", nullable = false)
private Boolean isDelegation;
Oracle DDL
alter table agent add (is_delegation number(1) default 0 not null);
As stated in Hibernate docu