Friday, 15 March 2013

java - JPA boolean default = false @transient -



java - JPA boolean default = false @transient -

how can set default value of @transient boolean false? everytime object value true. tried "@column(nullable=false, columndefinition="boolean default false") " doesn't work

thx =)

how this

@transient private boolean myfield = false;

btw, @column has no effect on transient fields.

java jpa

No comments:

Post a Comment