save « Default « JPA Q&A





2. why not set a default value what definiens by DDL on save()?    forum.hibernate.org

why not set a default value what definiens by DDL on save()? a datetime field has a default value definiens by DDL. so, I did not set the property of the value object. after session.save(object), the record has not default value of the field. why ? must I set the property of the value object?

3. don't save default value for primitive-array    forum.hibernate.org

Hey all! I'm saving an array of floats using a primitive-array type This does work nicely for persisting things. However, all of the values in my array are being stored in the database, including ones with a value zero. Storing the zero value floats is unnecessary since that is the default value ...