In JPA is there an annotation to specify that boolean fields should be persisted as an integer.
I’m using OpenJPA and it’s currently persisting boolean fields as bits. I’d rather use integer 1 or 0.
In JPA is there an annotation to specify that boolean fields should be persisted
Share
You can specify the column definition: