-->
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: Need help with hibernate annotations
PostPosted: Tue Nov 07, 2006 4:48 pm 
Newbie

Joined: Mon Nov 06, 2006 7:08 pm
Posts: 3
Hi, I'm currenly playing around with Hibernate 3.2.0 and Hibernate Annotations

I'm currently unable to get my simple Entity to be stored into the database (currently a simple derby database)...

The entity (quite simple):
Code:
package com.te.limsel.strategy.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

import org.apache.commons.lang.builder.ToStringBuilder;

@Entity
public class Flight implements Serializable {
    Long id;

    @Id
    public Long getId() { return id; }

    public void setId(Long id) { this.id = id; }
   
    @Override
    public String toString()
    {
       return ToStringBuilder.reflectionToString(this);
    }
}


The HibernateUtil class:
Code:
package com.te.limsel.strategy.fs.tests;

import java.io.File;

import org.hibernate.HibernateException;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.classic.Session;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class HibernateUtil {

   private static final SessionFactory sessionFactory;

   static {
      try {

         AnnotationConfiguration config = new AnnotationConfiguration();
         sessionFactory = config.addPackage(
               "com.te.limsel.strategy.model").configure(
                     new File("config/hibernate-cfg.xml")).buildSessionFactory();
         
//         SchemaExport schemaExport = new SchemaExport(config);
//           schemaExport.setOutputFile("data/sql_export.txt");
//           schemaExport.create(true,true);          
      } catch (Throwable ex) {
         // Log exception!
         throw new ExceptionInInitializerError(ex);
      }
   }

   public static Session getSession() throws HibernateException {
      return sessionFactory.openSession();
   }
}


The test:
Code:
package com.te.limsel.strategy.fs.tests;

import java.util.List;
import java.util.Properties;

import org.apache.log4j.PropertyConfigurator;
import org.hibernate.classic.Session;

import com.te.limsel.strategy.model.Flight;
import com.te.limsel.strategy.model.LimselPoint;

public class SessionTest {

   public static void main(String[] args)
   {
      try {
         
         Properties props = new Properties();         
         props.setProperty("log4j.rootLogger","DEBUG, A1");
         props.setProperty("log4j.appender.A1","org.apache.log4j.ConsoleAppender");
         props.setProperty("log4j.appender.A1.layout","org.apache.log4j.PatternLayout");
         props.setProperty("log4j.appender.A1.layout.ConversionPattern","---- %-4r [%t] %-5p %c %x - %m%n");
         PropertyConfigurator.configure(props);

         
         Session session  = HibernateUtil.getSession();
         
         Flight fl = new Flight();
         fl.setId(24l);
         System.out.println(fl);
         session.save(fl);
         System.out.println(fl);
         
         List<Flight> list = session.createQuery("from Flight").list();
         if(list.isEmpty())
            System.out.println("Empty flight list");
         for(Flight flight : list)
         {
            System.out.println(flight);
         }
      } catch (Throwable t0)
      {
         t0.printStackTrace();
      }
   }
}


and finally the configuration file:

Code:
<!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
  <session-factory>
   <!-- Database connection settings -->
        <property name="connection.driver_class">org.apache.derby.jdbc.ClientDriver</property>
        <property name="connection.url">jdbc:derby://localhost:1527/LIMSEL_STRATEGY</property>
    <!-- JDBC connection pool (use the built-in) -->
        <property name="connection.pool_size">1</property>
    <!-- SQL dialect -->
        <property name="dialect">org.hibernate.dialect.DerbyDialect</property>
     <!--  Mapping -->
       <mapping class="com.te.limsel.strategy.model.LimselPoint"/>
       <mapping class="com.te.limsel.strategy.model.Flight"/>      
  </session-factory>
</hibernate-configuration>
       



here is the log:
Code:
---- 0    [main] INFO  org.hibernate.cfg.annotations.Version  - Hibernate Annotations 3.2.0.GA
---- 31   [main] INFO  org.hibernate.cfg.Environment  - Hibernate 3.2.0
---- 47   [main] INFO  org.hibernate.cfg.Environment  - hibernate.properties not found
---- 47   [main] INFO  org.hibernate.cfg.Environment  - Bytecode provider name : cglib
---- 47   [main] INFO  org.hibernate.cfg.Environment  - using JDK 1.4 java.sql.Timestamp handling
---- 140  [main] INFO  org.hibernate.cfg.AnnotationConfiguration  - Mapping package com.te.limsel.strategy.model
---- 203  [main] WARN  org.hibernate.cfg.AnnotationBinder  - Package not found or wo package-info.java: com.te.limsel.strategy.model
---- 203  [main] INFO  org.hibernate.cfg.Configuration  - configuring from file: hibernate-cfg.xml
---- 468  [main] DEBUG org.hibernate.util.DTDEntityResolver  - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
---- 468  [main] DEBUG org.hibernate.util.DTDEntityResolver  - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
---- 468  [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  - connection.driver_class=org.apache.derby.jdbc.ClientDriver
---- 515  [main] DEBUG org.hibernate.cfg.Configuration  - connection.url=jdbc:derby://localhost:1527/LIMSEL_STRATEGY
---- 515  [main] DEBUG org.hibernate.cfg.Configuration  - connection.pool_size=1
---- 531  [main] DEBUG org.hibernate.cfg.Configuration  - dialect=org.hibernate.dialect.DerbyDialect
---- 531  [main] DEBUG org.hibernate.cfg.AnnotationConfiguration  - null<-org.dom4j.tree.DefaultAttribute@13bad12 [Attribute: name class value "com.te.limsel.strategy.model.LimselPoint"]
---- 578  [main] DEBUG org.hibernate.cfg.AnnotationConfiguration  - null<-org.dom4j.tree.DefaultAttribute@1f42b49 [Attribute: name class value "com.te.limsel.strategy.model.Flight"]
---- 578  [main] INFO  org.hibernate.cfg.Configuration  - Configured SessionFactory: null
---- 578  [main] DEBUG org.hibernate.cfg.Configuration  - properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\Program Files\Java\jre1.5.0_02\bin, java.vm.version=1.5.0_02-b09, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=CA, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs, java.runtime.version=1.5.0_02-b09, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_02\lib\endorsed, os.arch=x86, java.io.tmpdir=d:\DOCUME~1\xd2020\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252, java.library.path=C:\Program Files\Java\jre1.5.0_02\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Fichiers communs\Adaptec Shared\System;C:\Program Files\Hummingbird\Connectivity\8.00\Accessories\;C:\Program Files\Hummingbird\Connectivity\8.00\NFSClient;C:\Program Files\Sybase\Sybase Central\win32;C:\Sybase\ASEP;C:\Sybase\DLL;C:\Sybase\BIN;;c:\j2sdk1.4.2_06\\bin;%PATH%, java.specification.name=Java Platform API Specification, java.class.version=49.0, hibernate.connection.pool_size=1, sun.management.compiler=HotSpot Client Compiler, os.version=5.1, user.home=d:\Documents and Settings\xd2020, user.timezone=, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.5, hibernate.connection.driver_class=org.apache.derby.jdbc.ClientDriver, user.name=xd2020, java.class.path=D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\bin;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-antlr-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-junit-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-launcher-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\antlr-2.7.6.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-swing-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\asm.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\asm-attrs.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\c3p0-0.9.0.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\cglib-2.1.3.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\checkstyle-all.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\cleanimports.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\commons-collections-2.1.1.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\commons-logging-1.0.4.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\concurrent-1.3.2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\connector.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\dom4j-1.6.1.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ehcache-1.2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ejb3-persistence.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jaas.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jacc-1_0-fr.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\javassist.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jaxen-1.1-beta-7.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-cache.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-common.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-jmx.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-system.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jdbc2_0-stdext.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jgroups-2.2.8.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jta.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\junit-3.8.1.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\log4j-1.2.11.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\lucene-core-2.0.0.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\oscache-2.1.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\proxool-0.8.3.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\swarmcache-1.0rc2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\syndiag2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\versioncheck.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\xerces-2.6.2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\xml-apis.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\hibernate-annotations.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\hibernate3.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\hibernate-entitymanager.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-archive-browsing.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\hsqldb.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\commons-lang-2.2.jar;D:\eclipse32\eclipse\plugins\org.apache.derby.core_10.2.1\derby.jar;D:\eclipse32\eclipse\plugins\org.apache.derby.core_10.2.1\derbyclient.jar;D:\eclipse32\eclipse\plugins\org.apache.derby.core_10.2.1\derbytools.jar;D:\eclipse32\eclipse\plugins\org.apache.derby.core_10.2.1\derbynet.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.version=1.0, java.home=C:\Program Files\Java\jre1.5.0_02, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby://localhost:1527/LIMSEL_STRATEGY, connection.pool_size=1, user.language=fr, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, sharing, java.version=1.5.0_02, java.ext.dirs=C:\Program Files\Java\jre1.5.0_02\lib\ext, sun.boot.class.path=C:\Program Files\Java\jre1.5.0_02\lib\rt.jar;C:\Program Files\Java\jre1.5.0_02\lib\i18n.jar;C:\Program Files\Java\jre1.5.0_02\lib\sunrsasign.jar;C:\Program Files\Java\jre1.5.0_02\lib\jsse.jar;C:\Program Files\Java\jre1.5.0_02\lib\jce.jar;C:\Program Files\Java\jre1.5.0_02\lib\charsets.jar;C:\Program Files\Java\jre1.5.0_02\classes, java.vendor=Sun Microsystems Inc., connection.driver_class=org.apache.derby.jdbc.ClientDriver, file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, connection.url=jdbc:derby://localhost:1527/LIMSEL_STRATEGY, dialect=org.hibernate.dialect.DerbyDialect, sun.cpu.isalist=}
---- 578  [main] DEBUG org.hibernate.cfg.Configuration  - Preparing to build session factory with filters : {}
---- 578  [main] DEBUG org.hibernate.cfg.AnnotationConfiguration  - Execute first pass mapping processing
---- 625  [main] DEBUG org.hibernate.cfg.AnnotationConfiguration  - Process hbm files
---- 625  [main] DEBUG org.hibernate.cfg.AnnotationConfiguration  - Process annotated classes
---- 625  [main] INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: com.te.limsel.strategy.model.LimselPoint
---- 703  [main] DEBUG org.hibernate.cfg.Ejb3Column  - Binding column DTYPE unique false
---- 718  [main] DEBUG org.hibernate.cfg.annotations.EntityBinder  - Import with entity name=LimselPoint
---- 718  [main] INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity com.te.limsel.strategy.model.LimselPoint on table STRAT_LIMSEL_POINT
---- 734  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Add sequence generator with name: LimselPointIdSeq
---- 734  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Processing com.te.limsel.strategy.model.LimselPoint property annotation
---- 765  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Processing annotations of com.te.limsel.strategy.model.LimselPoint.id
---- 781  [main] DEBUG org.hibernate.cfg.Ejb3Column  - Binding column id unique false
---- 781  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - id is an id
---- 781  [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder  - building SimpleValue for id
---- 781  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Building property id
---- 781  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Cascading id with null
---- 781  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Bind @Id on id
---- 781  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Processing annotations of com.te.limsel.strategy.model.LimselPoint.name
---- 781  [main] DEBUG org.hibernate.cfg.Ejb3Column  - Binding column NAME unique true
---- 781  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - binding property name with lazy=false
---- 781  [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder  - building SimpleValue for name
---- 781  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Building property name
---- 781  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Cascading name with null
---- 797  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Processing annotations of com.te.limsel.strategy.model.LimselPoint.type
---- 797  [main] DEBUG org.hibernate.cfg.Ejb3Column  - Binding column TYPE unique false
---- 797  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - binding property type with lazy=false
---- 797  [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder  - building SimpleValue for type
---- 797  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Building property type
---- 797  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Cascading type with null
---- 797  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Processing annotations of com.te.limsel.strategy.model.LimselPoint.description
---- 797  [main] DEBUG org.hibernate.cfg.Ejb3Column  - Binding column DESCRIPTION unique false
---- 797  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - binding property description with lazy=false
---- 797  [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder  - building SimpleValue for description
---- 797  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Building property description
---- 797  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Cascading description with null
---- 797  [main] INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: com.te.limsel.strategy.model.Flight
---- 797  [main] DEBUG org.hibernate.cfg.Ejb3Column  - Binding column DTYPE unique false
---- 797  [main] DEBUG org.hibernate.cfg.annotations.EntityBinder  - Import with entity name=Flight
---- 797  [main] INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity com.te.limsel.strategy.model.Flight on table Flight
---- 797  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Processing com.te.limsel.strategy.model.Flight property annotation
---- 797  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Processing annotations of com.te.limsel.strategy.model.Flight.id
---- 797  [main] DEBUG org.hibernate.cfg.Ejb3Column  - Binding column id unique false
---- 797  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - id is an id
---- 797  [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder  - building SimpleValue for id
---- 797  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Building property id
---- 797  [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder  - Cascading id with null
---- 797  [main] DEBUG org.hibernate.cfg.AnnotationBinder  - Bind @Id on id
---- 797  [main] DEBUG org.hibernate.cfg.AnnotationConfiguration  - processing manytoone fk mappings
---- 797  [main] DEBUG org.hibernate.cfg.Configuration  - processing extends queue
---- 797  [main] DEBUG org.hibernate.cfg.Configuration  - processing collection mappings
---- 797  [main] DEBUG org.hibernate.cfg.Configuration  - processing native query and ResultSetMapping mappings
---- 797  [main] DEBUG org.hibernate.cfg.Configuration  - processing association property references
---- 797  [main] DEBUG org.hibernate.cfg.Configuration  - processing foreign key constraints
---- 812  [main] DEBUG org.hibernate.validator.ClassValidator  - ResourceBundle ValidatorMessages not found in thread context classloader
---- 812  [main] DEBUG org.hibernate.validator.ClassValidator  - ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
---- 828  [main] DEBUG org.hibernate.validator.ClassValidator  - ResourceBundle ValidatorMessages not found in thread context classloader
---- 828  [main] DEBUG org.hibernate.validator.ClassValidator  - ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
---- 922  [main] INFO  org.hibernate.connection.DriverManagerConnectionProvider  - Using Hibernate built-in connection pool (not for production use!)
---- 922  [main] INFO  org.hibernate.connection.DriverManagerConnectionProvider  - Hibernate connection pool size: 1
---- 922  [main] INFO  org.hibernate.connection.DriverManagerConnectionProvider  - autocommit mode: false
---- 953  [main] INFO  org.hibernate.connection.DriverManagerConnectionProvider  - using driver: org.apache.derby.jdbc.ClientDriver at URL: jdbc:derby://localhost:1527/LIMSEL_STRATEGY
---- 953  [main] INFO  org.hibernate.connection.DriverManagerConnectionProvider  - connection properties: {}
---- 953  [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - total checked-out connections: 0
---- 953  [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - opening new JDBC connection
---- 1265 [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - created connection to: jdbc:derby://localhost:1527/LIMSEL_STRATEGY, Isolation Level: 2
---- 1265 [main] INFO  org.hibernate.cfg.SettingsFactory  - RDBMS: Apache Derby, version: 10.2.1.7 - (453926)
---- 1265 [main] INFO  org.hibernate.cfg.SettingsFactory  - JDBC driver: Apache Derby Network Client JDBC Driver, version: 10.2.1.7 - (453926)
---- 1281 [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider  - returning connection to pool, pool size: 1
---- 1312 [main] INFO  org.hibernate.dialect.Dialect  - Using dialect: org.hibernate.dialect.DerbyDialect
---- 1312 [main] INFO  org.hibernate.transaction.TransactionFactoryFactory  - Using default transaction strategy (direct JDBC transactions)
---- 1359 [main] INFO  org.hibernate.transaction.TransactionManagerLookupFactory  - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Automatic flush during beforeCompletion(): disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Automatic session close at end of transaction: disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Scrollable result sets: enabled
---- 1359 [main] DEBUG org.hibernate.cfg.SettingsFactory  - Wrap result sets: disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - JDBC3 getGeneratedKeys(): disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Connection release mode: auto
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Default batch fetch size: 1
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Generate SQL with comments: disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Order SQL updates by primary key: disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
---- 1359 [main] INFO  org.hibernate.hql.ast.ASTQueryTranslatorFactory  - Using ASTQueryTranslatorFactory
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Query language substitutions: {}
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - JPA-QL strict compliance: disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Second-level cache: enabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Query cache: disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Cache provider: org.hibernate.cache.NoCacheProvider
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Optimize cache for minimal puts: disabled
---- 1359 [main] INFO  org.hibernate.cfg.SettingsFactory  - Structured second-level cache entries: disabled
---- 1359 [main] DEBUG org.hibernate.exception.SQLExceptionConverterFactory  - Using dialect defined converter
---- 1375 [main] INFO  org.hibernate.cfg.SettingsFactory  - Statistics: disabled
---- 1375 [main] INFO  org.hibernate.cfg.SettingsFactory  - Deleted entity synthetic identifier rollback: disabled
---- 1375 [main] INFO  org.hibernate.cfg.SettingsFactory  - Default entity-mode: pojo
---- 1437 [main] INFO  org.hibernate.impl.SessionFactoryImpl  - building session factory
---- 1437 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - Session factory constructed with filter configurations : {}
---- 1437 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\Program Files\Java\jre1.5.0_02\bin, java.vm.version=1.5.0_02-b09, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=CA, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs, java.runtime.version=1.5.0_02-b09, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_02\lib\endorsed, os.arch=x86, java.io.tmpdir=d:\DOCUME~1\xd2020\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252, java.library.path=C:\Program Files\Java\jre1.5.0_02\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Fichiers communs\Adaptec Shared\System;C:\Program Files\Hummingbird\Connectivity\8.00\Accessories\;C:\Program Files\Hummingbird\Connectivity\8.00\NFSClient;C:\Program Files\Sybase\Sybase Central\win32;C:\Sybase\ASEP;C:\Sybase\DLL;C:\Sybase\BIN;;c:\j2sdk1.4.2_06\\bin;%PATH%, java.specification.name=Java Platform API Specification, java.class.version=49.0, hibernate.connection.pool_size=1, sun.management.compiler=HotSpot Client Compiler, os.version=5.1, user.home=d:\Documents and Settings\xd2020, user.timezone=, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.5, hibernate.connection.driver_class=org.apache.derby.jdbc.ClientDriver, java.class.path=D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\bin;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-antlr-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-junit-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-launcher-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\antlr-2.7.6.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ant-swing-1.6.5.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\asm.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\asm-attrs.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\c3p0-0.9.0.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\cglib-2.1.3.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\checkstyle-all.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\cleanimports.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\commons-collections-2.1.1.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\commons-logging-1.0.4.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\concurrent-1.3.2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\connector.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\dom4j-1.6.1.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ehcache-1.2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\ejb3-persistence.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jaas.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jacc-1_0-fr.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\javassist.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jaxen-1.1-beta-7.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-cache.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-common.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-jmx.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-system.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jdbc2_0-stdext.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jgroups-2.2.8.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jta.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\junit-3.8.1.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\log4j-1.2.11.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\lucene-core-2.0.0.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\oscache-2.1.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\proxool-0.8.3.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\swarmcache-1.0rc2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\syndiag2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\versioncheck.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\xerces-2.6.2.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\xml-apis.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\hibernate-annotations.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\hibernate3.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\hibernate-entitymanager.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\jboss-archive-browsing.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\hsqldb.jar;D:\Documents and Settings\xd2020\workspace\limsel_strategy_fs\lib\commons-lang-2.2.jar;D:\eclipse32\eclipse\plugins\org.apache.derby.core_10.2.1\derby.jar;D:\eclipse32\eclipse\plugins\org.apache.derby.core_10.2.1\derbyclient.jar;D:\eclipse32\eclipse\plugins\org.apache.derby.core_10.2.1\derbytools.jar;D:\eclipse32\eclipse\plugins\org.apache.derby.core_10.2.1\derbynet.jar, user.name=xd2020, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=C:\Program Files\Java\jre1.5.0_02, hibernate.connection.url=jdbc:derby://localhost:1527/LIMSEL_STRATEGY, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Sun Microsystems Inc., user.language=fr, connection.pool_size=1, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, sharing, java.version=1.5.0_02, java.ext.dirs=C:\Program Files\Java\jre1.5.0_02\lib\ext, sun.boot.class.path=C:\Program Files\Java\jre1.5.0_02\lib\rt.jar;C:\Program Files\Java\jre1.5.0_02\lib\i18n.jar;C:\Program Files\Java\jre1.5.0_02\lib\sunrsasign.jar;C:\Program Files\Java\jre1.5.0_02\lib\jsse.jar;C:\Program Files\Java\jre1.5.0_02\lib\jce.jar;C:\Program Files\Java\jre1.5.0_02\lib\charsets.jar;C:\Program Files\Java\jre1.5.0_02\classes, java.vendor=Sun Microsystems Inc., file.separator=\, connection.driver_class=org.apache.derby.jdbc.ClientDriver, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, connection.url=jdbc:derby://localhost:1527/LIMSEL_STRATEGY, sun.cpu.isalist=, dialect=org.hibernate.dialect.DerbyDialect}
---- 1765 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  - Static SQL for entity: com.te.limsel.strategy.model.Flight
---- 1765 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Version select: select id from Flight where id =?
---- 1765 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Snapshot select: select flight_.id from Flight flight_ where flight_.id=?
---- 1765 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Insert 0: insert into Flight (id) values (?)
---- 1765 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Update 0: null
---- 1765 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Delete 0: delete from Flight where id=?
---- 1781 [main] INFO  org.hibernate.tuple.PojoInstantiator  - no default (no-argument) constructor for class: com.te.limsel.strategy.model.LimselPoint (class must be instantiated by Interceptor)
---- 1797 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  - Static SQL for entity: com.te.limsel.strategy.model.LimselPoint
---- 1797 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Version select: select id from STRAT_LIMSEL_POINT where id =?
---- 1797 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Snapshot select: select limselpoin_.id, limselpoin_.NAME as NAME0_, limselpoin_.TYPE as TYPE0_, limselpoin_.DESCRIPTION as DESCRIPT4_0_ from STRAT_LIMSEL_POINT limselpoin_ where limselpoin_.id=?
---- 1797 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Insert 0: insert into STRAT_LIMSEL_POINT (NAME, TYPE, DESCRIPTION, id) values (?, ?, ?, ?)
---- 1797 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Update 0: update STRAT_LIMSEL_POINT set NAME=?, TYPE=?, DESCRIPTION=? where id=?
---- 1797 [main] DEBUG org.hibernate.persister.entity.AbstractEntityPersister  -  Delete 0: delete from STRAT_LIMSEL_POINT where id=?
---- 1828 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.Flight: select flight0_.id as id1_0_ from Flight flight0_ where flight0_.id=?
---- 1828 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.Flight: select flight0_.id as id1_0_ from Flight flight0_ where flight0_.id=?
---- 1828 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.Flight: select flight0_.id as id1_0_ from Flight flight0_ where flight0_.id=? for read only with rs
---- 1828 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.Flight: select flight0_.id as id1_0_ from Flight flight0_ where flight0_.id=? for read only with rs
---- 1828 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.Flight: select flight0_.id as id1_0_ from Flight flight0_ where flight0_.id=? for read only with rs
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for action ACTION_MERGE on entity com.te.limsel.strategy.model.Flight: select flight0_.id as id1_0_ from Flight flight0_ where flight0_.id=?
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for action ACTION_REFRESH on entity com.te.limsel.strategy.model.Flight: select flight0_.id as id1_0_ from Flight flight0_ where flight0_.id=?
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.LimselPoint: select limselpoin0_.id as id0_0_, limselpoin0_.NAME as NAME0_0_, limselpoin0_.TYPE as TYPE0_0_, limselpoin0_.DESCRIPTION as DESCRIPT4_0_0_ from STRAT_LIMSEL_POINT limselpoin0_ where limselpoin0_.id=?
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.LimselPoint: select limselpoin0_.id as id0_0_, limselpoin0_.NAME as NAME0_0_, limselpoin0_.TYPE as TYPE0_0_, limselpoin0_.DESCRIPTION as DESCRIPT4_0_0_ from STRAT_LIMSEL_POINT limselpoin0_ where limselpoin0_.id=?
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.LimselPoint: select limselpoin0_.id as id0_0_, limselpoin0_.NAME as NAME0_0_, limselpoin0_.TYPE as TYPE0_0_, limselpoin0_.DESCRIPTION as DESCRIPT4_0_0_ from STRAT_LIMSEL_POINT limselpoin0_ where limselpoin0_.id=? for read only with rs
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.LimselPoint: select limselpoin0_.id as id0_0_, limselpoin0_.NAME as NAME0_0_, limselpoin0_.TYPE as TYPE0_0_, limselpoin0_.DESCRIPTION as DESCRIPT4_0_0_ from STRAT_LIMSEL_POINT limselpoin0_ where limselpoin0_.id=? for read only with rs
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for entity com.te.limsel.strategy.model.LimselPoint: select limselpoin0_.id as id0_0_, limselpoin0_.NAME as NAME0_0_, limselpoin0_.TYPE as TYPE0_0_, limselpoin0_.DESCRIPTION as DESCRIPT4_0_0_ from STRAT_LIMSEL_POINT limselpoin0_ where limselpoin0_.id=? for read only with rs
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for action ACTION_MERGE on entity com.te.limsel.strategy.model.LimselPoint: select limselpoin0_.id as id0_0_, limselpoin0_.NAME as NAME0_0_, limselpoin0_.TYPE as TYPE0_0_, limselpoin0_.DESCRIPTION as DESCRIPT4_0_0_ from STRAT_LIMSEL_POINT limselpoin0_ where limselpoin0_.id=?
---- 1843 [main] DEBUG org.hibernate.loader.entity.EntityLoader  - Static select for action ACTION_REFRESH on entity com.te.limsel.strategy.model.LimselPoint: select limselpoin0_.id as id0_0_, limselpoin0_.NAME as NAME0_0_, limselpoin0_.TYPE as TYPE0_0_, limselpoin0_.DESCRIPTION as DESCRIPT4_0_0_ from STRAT_LIMSEL_POINT limselpoin0_ where limselpoin0_.id=?
---- 1859 [main] DEBUG org.hibernate.impl.SessionFactoryObjectFactory  - initializing class SessionFactoryObjectFactory
---- 1859 [main] DEBUG org.hibernate.impl.SessionFactoryObjectFactory  - registered: 03430dbe0ec42709010ec4270ad70000 (unnamed)
---- 1859 [main] INFO  org.hibernate.impl.SessionFactoryObjectFactory  - Not binding factory to JNDI, no JNDI name configured
---- 1859 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - instantiated session factory
---- 1859 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - Checking 0 named HQL queries
---- 1859 [main] DEBUG org.hibernate.impl.SessionFactoryImpl  - Checking 0 named SQL queries
---- 1968 [main] DEBUG org.hibernate.impl.SessionImpl  - opened session at timestamp: 11629320629
com.te.limsel.strategy.model.Flight@8238f4[id=24]
---- 1984 [main] DEBUG org.hibernate.event.def.DefaultSaveOrUpdateEventListener  - saving transient instance
---- 1984 [main] DEBUG org.hibernate.event.def.AbstractSaveEventListener  - generated identifier: 24, using strategy: org.hibernate.id.Assigned
---- 1984 [main] DEBUG org.hibernate.event.def.AbstractSaveEventListener  - saving [com.te.limsel.strategy.model.Flight#24]
com.te.limsel.strategy.model.Flight@8238f4[id=24]
...


you'll notice in the log (around 1984ms) that the instance does not trigger any insert sequence....

What am I missing ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 08, 2006 6:26 pm 
Newbie

Joined: Mon Nov 06, 2006 7:08 pm
Posts: 3
I solved my problem by "standardizing" the way I initialise EntityManager
Code:
   public static void main(String[] args) {
      
      Properties props = new Properties();         
      props.setProperty("log4j.rootLogger","DEBUG, A1");
      props.setProperty("log4j.appender.A1","org.apache.log4j.ConsoleAppender");
      props.setProperty("log4j.appender.A1.layout","org.apache.log4j.PatternLayout");
      props.setProperty("log4j.appender.A1.layout.ConversionPattern","---- %-4r [%t] %-5p %c %x - %m%n");
      PropertyConfigurator.configure(props);
      try {
         EntityManagerFactory emf = Persistence
               .createEntityManagerFactory("limsel_strategy");
         EntityManager em = emf.createEntityManager();
         
         SchemaExport schemaExport = new SchemaExport(new Ejb3Configuration().configure("limsel_strategy",(Map)null).getHibernateConfiguration());
           schemaExport.setOutputFile("data/sql_export.txt");
           schemaExport.create(true, false);          

         try {
            EntityTransaction trans = em.getTransaction();
            trans.begin();

                      ...
            em.persist(object);

            trans.commit();
            
            ...
         } finally {
            em.close();
         }
      } catch (Throwable t) {
         t.printStackTrace();
      }
   }
   


and adding a META-INF/persistence.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"> 
  <persistence-unit name="limsel_strategy">
     <provider>org.hibernate.ejb.HibernatePersistence</provider>
     <class>com.te.limsel.strategy.model.LimselPoint</class>
     <properties>
      <!-- Database connection settings -->
           <property name="hibernate.connection.driver_class">org.apache.derby.jdbc.ClientDriver</property>
           <property name="hibernate.connection.url">jdbc:derby://localhost:1527/LIMSEL_STRATEGY</property>
       <!-- JDBC connection pool (use the built-in) -->
           <property name="hibernate.connection.pool_size">1</property>
       <!-- SQL dialect -->
           <property name="hibernate.dialect">org.hibernate.dialect.DerbyDialect</property>
        <!--  Mapping -->     
     </properties>
</persistence-unit>
</persistence>


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.