column « Data Type « JPA Q&A





1. Nullable Date column merge problem    stackoverflow.com

I am using JPA with openjpa implementation beneath, on a Geronimo application server. I am also using MySQL database. I have a problem with updating object with nullable Date property. When ...

2. invalid column type ~ Sending ArrayList to a pl/sql createdNameQuery    stackoverflow.com

This is related to a past question of mine. I am receiving a List<Employee> and grabbing the ids from the Employee objects and putting them in an ArrayList<String> then sending that ...

3. why Hibernate allows NULL value to non-null columns?    forum.hibernate.org

Again, I have Tool and Copmany. Every tool belongs to exactly one company. Mapping for Company: Mapping for Tool has: note "not-null". When I try session.save( new Tool() ); I get Not null constraint violation from Oracle, not from Hibernate. This is bacause Hibernate actually tried ...

4. Hibernate sets columns to null    forum.hibernate.org

Hi all, could anyone tell me when/why hibernate sets to null some fields on a database, without a session.save call ? It is happened to me and unfortunately I dont'know how to reproduce it: it seem that after manually recreating a table (mapped on a hibernate bean) while my webapp was running, some fields on other tables were set to null!! ...

5. setting null value to a double column fails?    forum.hibernate.org

6. Assignment of a NULL value to a NOT NULL column    forum.hibernate.org

Newbie Joined: Sun Apr 04, 2004 7:22 am Posts: 5 Location: Bangalore Hi gpani Please find here the details

7. Problem with date column.    forum.hibernate.org

Hi!, I have a class 'A' with a persistent attribute of type java.sql.Date : ..... private java.sql.Date fecha; ..... ...... then I do this: .... A a = new A(); a.setFecha(new java.sql.Date(System.currentTimeMillis())); session.save(a); ... When I look the database column always the hours, minutes and seconds are the same "12:00:00 p.m." but I need to differentiate it. ...

8. Problem with Column Type: Wrong datatype for read    forum.hibernate.org

Author Message sick1 Post subject: Problem with Column Type: Wrong datatype for read Posted: Tue Sep 14, 2004 9:22 am Newbie Joined: Tue Sep 14, 2004 12:05 am Posts: 5 I'm running into a problem where it appears that a column that I intend to map as a String is being read in as a Byte. Apologies in advance ...

9. lazy initilization of large string (ntext) columns    forum.hibernate.org

Hi Folks, I have inherited a database that was originally being used from a vb application. We are now moving to java/hibernate. The database schema is not bad, but isn't perfect either. Whats causing me problems is that a lot of tables have ntext columns that can be as large as 100kb. Further there are BLOBS holding binary data and so ...





10. Numeric column returns NULL if the preceding column is null.    forum.hibernate.org

Beginner Joined: Tue May 17, 2005 9:10 am Posts: 29 Issue: Numeric column returns NULL if the preceding column with String type is NULL. Database version : Oracle Rdb , Version :V7.1-411, JDBC Driver: Oracle Rdb Native Thin JDBC Driver,v71 Hibernate version : cant tell from Hibernate2.jar , inside jar , it has hibernate-configuration-2.0.dtd , so probably its 2.0?? Database table ...

11. Class column variable always null    forum.hibernate.org

For some reason when I retrieve an NcContact record, the orgUnitIdAndorgUnitType is always null rather than having an NcOrgUnit assigned to it. The log shows that the values for the column is being retrieved properly but for some reason Hibernate is hiding the values from me. Any ideas? George Hibernate version: 3.1 Mapping documents: Generated by hibernate-tools 3.1 beta 3 ...

12. null column when using LazyCollectionOption.EXTRA    forum.hibernate.org

Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message SpamFighter Post subject: null column when using LazyCollectionOption.EXTRA Posted: Sat Sep 29, 2007 7:38 am Newbie Joined: Sun Sep 23, 2007 4:31 am Posts: 2 Hi, I already posted this in the german forum but got ...

13. Problem with null date column value    forum.hibernate.org

Dear all, I have an issue in working with date column with null values. I am using hibernate with struts. I am facing problem in displaying the values from Oracle which has null date values. Will any one of you help me in solving this issue and also storing a date value with a format of dd-MM-yyyy thro hibernate. Cheers, Brindha ...