server « Data Type « JPA Q&A





2. DuplicateImport message when Jboss server Startup first time    forum.hibernate.org

Newbie Joined: Thu Mar 17, 2005 1:49 am Posts: 1 I'm Using JBoss applcation server with Hibernate.. when ever I started the server I'm getting the exception stating Duplicate Import and the Browser gives Blank page . This happens only at startup and after refreshing the page one or two time the desired values are displayed. I'm giving the full stack ...

3. Update timestamp column with current database server time    forum.hibernate.org

I've seen this question asked a few times but haven't seen an answer. I would like to update certain timestamp columns with the database server's current date/time. For Oracle and MySQL you would use sysdate. But I don't see a way to do this using Hibernate. If I do a myobject.setLastDate(currenttime) I must send a Java timestamp value. I need a ...

4. INSERT|UPDATE of time column using server side funcs?    forum.hibernate.org

I have a bunch of code that whose database modifications (INSERT/UPDATE) don't use a generated timestamp by the database client application but use the appropiate server side macro for the current time. I have two basic requirements: 1) Simple use of the CURRENT_TIMESTAMP to fill in one or more column values. INSERT INTO my_table SET id=1, tstamp=CURRENT_TIMESTAMP(), date=CURRENT_TIMESTAMP(); UPDATE my_table SET ...

5. Dealing with MS SQLServer 2005 Money Data Type    forum.hibernate.org

I am using Hibernate with JPA annotations on my POJO's and was until recently having trouble getting Hibernate to recognize the money type reported by MS SQLServer 2005. The only way I could figure out how to do this was to extend the SQLServerDialect in order to support the type as follows: /* * Custom class extending SQLServerDialect to recognize money ...

6. Dealing with MS SQLServer 2005 Money Data Type    forum.hibernate.org

I am using Hibernate with JPA annotations on my POJO's and was until recently having trouble getting Hibernate to recognize the money type reported by MS SQLServer 2005: @Column(name = "purchase_price", scale = 4) @Type(type="big_decimal") public BigDecimal getPurchasePrice() { return this.purchasePrice; } The only way I could figure out how to do this was to extend the SQLServerDialect in order to ...

7. facing problem while first time login after server starts    forum.hibernate.org

Author Message diny Post subject: facing problem while first time login after server starts Posted: Wed Nov 12, 2008 7:46 am Newbie Joined: Wed Nov 12, 2008 7:38 am Posts: 4 In my application we are using websphere6.0 after server starts, first time when i tried to login in my application am getting the following exception can any one ...

8. Insert Operation shows Null values in MS SQL server database    forum.hibernate.org

Hi Gurus, Code: public static void main(String[] args) { Session session = null; try{ // This step will read hibernate.cfg.xml and prepare hibernate for use SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); ...