hibernate3

Database record reverting after manual change

Problem solved: Thanks guys, see my answer below. I have a website running in Tomcat 5.5 hooked up to a MySQL5 database using Hibernate3. One record simply refuses to keep any changes performed on it. If I change the record programmatically, the values revert back to what they were previously. If I manually modify the record in the d...

osuser + hibernate3 integration

i using osworkflow with hibernate3. i looking for guideliness on integrating osuser with hibernate3. can anyone elaborate ..? ...

Hibernate 3.0 + ElementCollection class missing.

Hi, I created a small desktop project using Hibernate, to understand how enterprise patterns are applied in there. I'm using annotations, and wrote a class to wrap my session factory public class Hibernation { private static final SessionFactory sessionFactory; static{ try{ //sesionFactory = new org.hibernate.cfg....

SessionFactory in Hibernate

Hi, I am using hibernate-2.1 and "net.sf.hibernate.SessionFactory" class in my spring project. Now I am switched to Spring 2.5.6.A, where they are using hibernate3 and I am not able to find out the "net.sf.hibernate" package in that. But I found SessionFactory class in the package "org.springframework.orm.toplink". Is both the class ...

Hibernate configuration files not found by Axis2

I am writing a web service to be deployed on Tomcat using Axis2. I am using Hibernate3 to persist data between the web service and a MySQL database. When running the application through by IDE, the method I am exposing through Axis2 works as intended, however when I deploy the .aar to Tomcat, I receive a SOAP Error claiming that hiberna...

hibernate3-maven-plugin dependencies for newer version of hibernate

I would like to use hibernate-3.5-1.Final along with this plugin, what should be my dependencies here. It seems to be picking up a older set of jars and failing right now. <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2....

How to get hibernate3-maven-plugin hbm2ddl to find JDBC driver?

I have a Java project I am building with Maven. I am now trying to get the hibernate3-maven-plugin to run the hbm2ddl tool to generate a schema.sql file I can use to create the database schema from my annotated domain classes. This is a JPA application that uses Hibernate as the provider. In my persistence.xml file I call out the mysq...

Maven doesn't compile target/hibernate3/generated-sources

Can someone tell me how to configure maven for it also to compile sources from the target/hibernate3/generated-sources directory? I have already read this and other posts but they don't seem to solve my problem (which indeed seems trivial). I have used the bottom-up approach hibernate configuration for cfg.xml, hbm.xml and POJO generati...

How to output two ddl files at the same time with using maven hbm2ddl plugin

Our application needs to use two different kinds of databases.One is oracle, the other is mysql and we want to use maven plugin hbm2ddl to generate the ddl file, and want to output the two ddl files at the same time, I don't know how to set the configuration in pom.xml. I tried to use this plugin twice, but it always generated one ddl fi...

How to keep hibernate3-maven-plugin HBM2DDL from printing to console

I used the hibernate3-maven-plugin to automatically create a SQL script I can use to create a database schema in a new database. I do this via the hbm2ddl tool. I thought that when I instructed it to write the SQL to a file it would stop cluttering up my maven builds with 50 pages of SQL. Anyway to make it stop writing to the console ...

high performance hibernate insert

I am working on a latency sensitive part of an application, basically i will receive a network event transform the data and then insert all the data into the DB. After profiling i see that basically all my time is spent trying to save the data. here is the code private void insertAllData(Collection<Data> dataItems) { long start_tim...

Stop Maven's hibernate3-maven-plugin from logging to console?

I can control hibernate logging from within my application just fine, but during a system build, the hibernate3-maven-plugin runs hbm2ddl and this is spewing tons of useless INFO log messages to the console: 21:51:57,383 INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA 21:51:57,394 INFO org.hibernate.cfg.Env...

Upgrade Glassfish v2 to JPA 2.0?

Hi, I'm trying to use Hibernate 3.5.5 with Spring HibernateJpaVendorAdapter on Glassfish V2 but I'm getting the following exception when the Spring context is initialised: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode; at org.hibernate.ejb.util.LogHelper....