-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Created Oracle10g Table But Not Inserting Records
PostPosted: Tue Apr 01, 2008 2:53 am 
Newbie

Joined: Mon Mar 31, 2008 12:50 am
Posts: 4
Hi there

I am using Hibernate 3.2 and OracleXE (10g) with Eclipse Europa and JBoss 4.2.2GA to do a simple database CRUD app with Swing and a Bean. My app is basically a CD with a HILO ID and Title. I have set show-sql to true and Hibernate to auto create-drop.

My problem is : Hibernate created my CD table but it did not insert any record when I click the Add button in my Swing app. My app compiles without error and reviewing the log appeared to show the Hibernate code seems OK.

Please can you help me? Thanks in advance! - Ezani

CD.java -
-----------
Code:
import java.io.*;
import java.util.*;


public class CD {

   
   int id;
   String title;

   
   public CD() {}
   
   
   public CD(String title) {
   this.title = title;
   }

   
   public void setId(int id) {
   this.id = id;
   }
   
   
   public int getId(){
   return id;
   }
   
   
   public void setTitle(String title) {
   this.title = title;
   }
   
   
   public String getTitle() {
   return title;
   }
   
   
   public String toString() {
   return this.id + " " + this.title;
   }   
}


CDTest.java (shortened to show just the Add function) -
--------------
Code:
import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;
import java.io.*;
import java.awt.*;
import javax.swing.*;
import java.util.*;
import javax.swing.table.*;
import javax.swing.event.*;
import java.awt.event.*;
import org.hibernate.*;
import org.hibernate.cfg.*;
import org.hibernate.Session;

public class CDTest extends JFrame implements ListDataListener {
   
   private static final long serialVersionUID = 1L;   
   static Logger logger = Logger.getLogger(CDTest.class);

   JList list;
   CDList listModel;
   JTextField titleField;
   JTextField IDField;
   JLabel IDLabel;
   int selectedListIndex;

   SessionFactory sessionFactory;

   
   public CDTest(){

      try {
      
         Configuration cfg = new Configuration().addClass(CD.class);   
         //Configuration cfg = new Configuration();
         //cfg.addClass(CD.class);
         cfg.configure("hibernate.cfg.xml");
         sessionFactory = cfg.buildSessionFactory();
         buildGUI();
      }
      
      catch (Exception e)
      
      {
         e.printStackTrace();
      }

}



   private void buildGUI() {

      Container container = getContentPane();
      listModel = new CDList();
//      listModel.addCD("Grace Under Pressure");
      list = new JList();
      list.setModel(listModel);
      list.setCellRenderer(new CDRenderer());
      container.add(list, BorderLayout.NORTH);
      list.addListSelectionListener(new ListSelectionListener() {      
      
   public void valueChanged(ListSelectionEvent ae) {

      JList list = (JList)ae.getSource () ;
      CDList model = (CDList)list.getModel();
      selectedListIndex = ((JList)ae.getSource()).getSelectedIndex();
      CD cd = (CD)model.getElementAt(selectedListIndex);
      IDLabel.setText(""+cd.getId());
      titleField.setText(cd.getTitle());
      }

   });

   
      JPanel panel = new JPanel(new GridLayout(7,2));
      titleField = new JTextField(25);
      IDLabel = new JLabel();
      panel.add(new JLabel("ID"));
      panel.add(IDLabel);
      panel.add(new JLabel("Title"));
      panel.add (titleField);


      panel.add (button);
      button = new JButton("Add");
      button.addActionListener(new ActionListener() {

         
   public void actionPerformed(ActionEvent ae) {

         CD cd = new CD(   titleField.getText()  );
         listModel.addCD(cd);
         System.out.println(cd.toString());

         try {
            Session session = sessionFactory.openSession();            
            session.save(cd);
            session.flush();
            session.close();

         }
         catch (Exception e) {
            e.printStackTrace();
         }

         IDLabel.setText("");
         titleField.setText("");
         }
      });

..................
   public static void main(String [] args) {
      org.apache.log4j.BasicConfigurator.configure();   
      CDTest t = new CDTest() ;
   }
   
   private class CDList extends AbstractListModel {
   Vector v = new Vector();
   public void addCD(String title) {
   CD cd = new CD(title);
   v.add(cd);
   fireContentsChanged(this, 0, 0);
   }
   
   
   public void addCD(CD cd) {
   v.add(cd) ;
   fireContentsChanged(this, 0, 0);
   }
   
   
   public void addCDs(java.util.List cds) {
   v.addAll(cds);
   fireContentsChanged(this, 0, 0);
   }


Oracle table schema -
------------------------
Code:
ID NUMBER(10,0)
TITLE VARCHAR2(255)



hibernate.cfg.xml -
----------------------
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:XE</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="hibernate.connection.username">SYSTEM</property>
<property name="hibernate.connection.password">Swordfish1</property>
<property name="connection.pool_size">10</property>
<property name="show_sql">true</property>
<!-- Mapping files -->
      <mapping resource="CD.hbm.xml"/>
</session-factory>
</hibernate-configuration> 


CD.hbm.xml -
------------------
[/code]
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

<class name="CD" table="CD">

<id name="Id" type="int" column="ID"> <generator class="hilo"/></id>

<property name="title" type="string"><column name="title"/></property>

</class>

</hibernate-mapping>
[/code]

Console output -
-------------------
When I start the app :
Code:
n] INFO org.hibernate.cfg.Environment  - Hibernate 3.2.5
15 [main] INFO org.hibernate.cfg.Environment  - hibernate.properties not found
15 [main] INFO org.hibernate.cfg.Environment  - Bytecode provider name : cglib
15 [main] INFO org.hibernate.cfg.Environment  - using JDK 1.4 java.sql.Timestamp handling
94 [main] INFO org.hibernate.cfg.Configuration  - Reading mappings from resource: CD.hbm.xml
94 [main] INFO org.hibernate.cfg.Configuration  - Reading mappings from resource: CD.hbm.xml
344 [main] DEBUG org.hibernate.util.DTDEntityResolver  - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
344 [main] DEBUG org.hibernate.util.DTDEntityResolver  - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
344 [main] DEBUG org.hibernate.util.DTDEntityResolver  - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
484 [main] INFO org.hibernate.cfg.HbmBinder  - Mapping class: CD -> CD
500 [main] DEBUG org.hibernate.cfg.HbmBinder  - Mapped property: Id -> ID
500 [main] DEBUG org.hibernate.cfg.HbmBinder  - Mapped property: title -> title
500 [main] INFO org.hibernate.cfg.Configuration  - configuring from resource: hibernate.cfg.xml
500 [main] INFO org.hibernate.cfg.Configuration  - Configuration resource: hibernate.cfg.xml
500 [main] DEBUG org.hibernate.util.DTDEntityResolver  - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
500 [main] DEBUG org.hibernate.util.DTDEntityResolver  - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
515 [main] DEBUG org.hibernate.util.DTDEntityResolver  - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
515 [main] DEBUG org.hibernate.cfg.Configuration  - hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
515 [main] DEBUG org.hibernate.cfg.Configuration  - hibernate.connection.url=jdbc:oracle:thin:@localhost:1521:XE
515 [main] DEBUG org.hibernate.cfg.Configuration  - hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
515 [main] DEBUG org.hibernate.cfg.Configuration  - hibernate.connection.username=SYSTEM
515 [main] DEBUG org.hibernate.cfg.Configuration  - hibernate.connection.password=Swordfish1
515 [main] DEBUG org.hibernate.cfg.Configuration  - connection.pool_size=10
515 [main] DEBUG org.hibernate.cfg.Configuration  - show_sql=true
515 [main] INFO org.hibernate.cfg.Configuration  - Configured SessionFactory: null
515 [main] DEBUG org.hibernate.cfg.Configuration  - Preparing to build session factory with filters : {}
515 [main] DEBUG org.hibernate.cfg.Configuration  - processing extends queue
515 [main] DEBUG org.hibernate.cfg.Configuration  - processing collection mappings
515 [main] DEBUG org.hibernate.cfg.Configuration  - processing native query and ResultSetMapping mappings
515 [main] DEBUG org.hibernate.cfg.Configuration  - processing association property references
515 [main] DEBUG org.hibernate.cfg.Configuration  - processing foreign key constraints
609 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider  - Using Hibernate built-in connection pool (not for production use!)
609 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider  - Hibernate connection pool size: 10
609 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider  - autocommit mode: false
703 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider  - using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:XE
703 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider  - connection properties: {user=SYSTEM, password=Swordfish1}
703 [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - total checked-out connections: 0
703 [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - opening new JDBC connection
1515 [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - created connection to: jdbc:oracle:thin:@localhost:1521:XE, Isolation Level: 2
1515 [main] INFO org.hibernate.cfg.SettingsFactory  - RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
1515 [main] INFO org.hibernate.cfg.SettingsFactory  - JDBC driver: Oracle JDBC driver, version: 11.1.0.6.0-Production+
1515 [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - returning connection to pool, pool size: 1
1547 [main] INFO org.hibernate.dialect.Dialect  - Using dialect: org.hibernate.dialect.Oracle10gDialect
1547 [main] INFO org.hibernate.transaction.TransactionFactoryFactory  - Using default transaction strategy (direct JDBC transactions)
1547 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory  - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Automatic flush during beforeCompletion(): disabled
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Automatic session close at end of transaction: disabled
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - JDBC batch size: 15
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - JDBC batch updates for versioned data: disabled
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Scrollable result sets: enabled
1547 [main] DEBUG org.hibernate.cfg.SettingsFactory  - Wrap result sets: disabled
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - JDBC3 getGeneratedKeys(): disabled
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Connection release mode: auto
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Default batch fetch size: 1
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Generate SQL with comments: disabled
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Order SQL updates by primary key: disabled
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Order SQL inserts for batching: disabled
1547 [main] INFO org.hibernate.cfg.SettingsFactory  - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
1562 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory  - Using ASTQueryTranslatorFactory
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Query language substitutions: {}
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - JPA-QL strict compliance: disabled
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Second-level cache: enabled
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Query cache: disabled
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Cache provider: org.hibernate.cache.NoCacheProvider
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Optimize cache for minimal puts: disabled
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Structured second-level cache entries: disabled
1562 [main] DEBUG org.hibernate.exception.SQLExceptionConverterFactory  - Using dialect defined converter
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Echoing all SQL to stdout
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Statistics: disabled
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Deleted entity synthetic identifier rollback: disabled
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Default entity-mode: pojo
1562 [main] INFO org.hibernate.cfg.SettingsFactory  - Named query checking : enabled
1594 [main] INFO org.hibernate.impl.SessionFactoryImpl  - building session factory
1594 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - Session factory constructed with filter configurations : {}
1859 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  - Static SQL for entity: CD
1859 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Version select: select ID from CD where ID =?
1859 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Snapshot select: select cd_.ID, cd_.title as title0_ from CD cd_ where cd_.ID=?
1859 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Insert 0: insert into CD (title, ID) values (?, ?)
1859 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Update 0: update CD set title=? where ID=?
1859 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Delete 0: delete from CD where ID=?
1890 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity CD: select cd0_.ID as ID0_0_, cd0_.title as title0_0_ from CD cd0_ where cd0_.ID=?
1890 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity CD: select cd0_.ID as ID0_0_, cd0_.title as title0_0_ from CD cd0_ where cd0_.ID=?
1890 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity CD: select cd0_.ID as ID0_0_, cd0_.title as title0_0_ from CD cd0_ where cd0_.ID=? for update
1890 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity CD: select cd0_.ID as ID0_0_, cd0_.title as title0_0_ from CD cd0_ where cd0_.ID=? for update nowait
1890 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity CD: select cd0_.ID as ID0_0_, cd0_.title as title0_0_ from CD cd0_ where cd0_.ID=? for update nowait
1906 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for action ACTION_MERGE on entity CD: select cd0_.ID as ID0_0_, cd0_.title as title0_0_ from CD cd0_ where cd0_.ID=?
1906 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for action ACTION_REFRESH on entity CD: select cd0_.ID as ID0_0_, cd0_.title as title0_0_ from CD cd0_ where cd0_.ID=?
1906 [main] DEBUG org.hibernate.impl.SessionFactoryObjectFactory  - initializing class SessionFactoryObjectFactory
1906 [main] DEBUG org.hibernate.impl.SessionFactoryObjectFactory  - registered: 2c90b2d61908c136011908c137ff0000 (unnamed)
1906 [main] INFO org.hibernate.impl.SessionFactoryObjectFactory  - Not binding factory to JNDI, no JNDI name configured
1906 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - instantiated session factory
1906 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - Checking 0 named HQL queries
1906 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - Checking 0 named SQL queries



And when I click the Add button :
Code:
0 testCD
57875 [AWT-EventQueue-0] DEBUG org.hibernate.impl.SessionImpl  - opened session at timestamp: 12070314130
57891 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.DefaultSaveOrUpdateEventListener  - saving transient instance
57891 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.AbstractBatcher  - opening JDBC connection
57891 [AWT-EventQueue-0] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - total checked-out connections: 0
57891 [AWT-EventQueue-0] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - using pooled JDBC connection, pool size: 0
57891 [AWT-EventQueue-0] DEBUG org.hibernate.SQL  - select next_hi from hibernate_unique_key for update
58188 [AWT-EventQueue-0] DEBUG org.hibernate.SQL  - update hibernate_unique_key set next_hi = ? where next_hi = ?
58203 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.AbstractBatcher  - closing JDBC connection (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)
58203 [AWT-EventQueue-0] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - returning connection to pool, pool size: 1
58203 [AWT-EventQueue-0] DEBUG org.hibernate.id.TableHiLoGenerator  - new hi value: 4
58203 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractSaveEventListener  - generated identifier: 131072, using strategy: org.hibernate.id.TableHiLoGenerator
58203 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractSaveEventListener  - saving [CD#131072]
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - flushing session
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - processing flush-time cascades
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - dirty checking collections
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - Flushing entities and processing referenced collections
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - Processing unreferenced collections
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - Scheduling collection removes/(re)creates/updates
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
58234 [AWT-EventQueue-0] DEBUG org.hibernate.pretty.Printer  - listing entities:
58234 [AWT-EventQueue-0] DEBUG org.hibernate.pretty.Printer  - CD{title=testCD, Id=131072}
58234 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - executing flush
58234 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.ConnectionManager  - registering flush begin
58234 [AWT-EventQueue-0] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  - Inserting entity: [CD#131072]
58234 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.AbstractBatcher  - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
58234 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.ConnectionManager  - opening JDBC connection
58234 [AWT-EventQueue-0] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - total checked-out connections: 0
58234 [AWT-EventQueue-0] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - using pooled JDBC connection, pool size: 0
58234 [AWT-EventQueue-0] DEBUG org.hibernate.SQL  - insert into CD (title, ID) values (?, ?)
Hibernate: insert into CD (title, ID) values (?, ?)
58234 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.AbstractBatcher  - preparing statement
58234 [AWT-EventQueue-0] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  - Dehydrating entity: [CD#131072]
58234 [AWT-EventQueue-0] DEBUG org.hibernate.type.StringType  - binding 'testCD' to parameter: 1
58234 [AWT-EventQueue-0] DEBUG org.hibernate.type.IntegerType  - binding '131072' to parameter: 2
58234 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.AbstractBatcher  - Executing batch size: 1
58266 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.Expectations  - success of batch update unknown: 0
58266 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.AbstractBatcher  - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
58266 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.AbstractBatcher  - closing statement
58266 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.ConnectionManager  - registering flush end
58266 [AWT-EventQueue-0] DEBUG org.hibernate.event.def.AbstractFlushingEventListener  - post flush
58266 [AWT-EventQueue-0] DEBUG org.hibernate.impl.SessionImpl  - closing session
58266 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.ConnectionManager  - performing cleanup
58266 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.ConnectionManager  - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
58266 [AWT-EventQueue-0] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - returning connection to pool, pool size: 1
58266 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.JDBCContext  - after transaction completion
58266 [AWT-EventQueue-0] DEBUG org.hibernate.jdbc.ConnectionManager  - aggressively releasing JDBC connection
58266 [AWT-EventQueue-0] DEBUG org.hibernate.impl.SessionImpl  - after transaction completion


Top
 Profile  
 
 Post subject: Problem Solved!
PostPosted: Tue Apr 01, 2008 3:06 am 
Newbie

Joined: Mon Mar 31, 2008 12:50 am
Posts: 4
Its ok, my problem is solved! Thank God! I added a begin transaction and a commit transaction after session.save.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.