String « Default « JPA Q&A





1. Can Hibernate default a Null String to Empty String    stackoverflow.com

In our application we are pulling data from a DB2 mainframe database. If the database has "low values" in a field, hibernate sends a "null" value in the object. ...

2. Mapping primatives to non-default types.e.g Strings->Numb    forum.hibernate.org

Hibernate version: 2.1.7 I'm new to hibernate. I am currently trying to implement hibernate on some existing tables and classes to test the speed versus what is already in place. The table have (oracle) 'NUMBER' fields, but the java object store this info in a String. Ideally I would just change the object/db field to store corresponding types, but since I ...