Thank you for your reply.
I just want to do bulk delete in the best way.
This is my hibernate.cfg.xml
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql:/localhost/test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<property name="show_sql">true</property>
<property name="transaction.factory_class">
net.sf.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="cache.use_query_cache">false</property>
</session-factory>
I didn't turn on second-level cache option. But in logger file, I still can see
14:43:37,322 INFO [SettingsFactory] cache provider: net.sf.ehcache.hibernate.Provider
Is that the problem?
------------------------------------------------------------------------------
14:43:37,262 INFO [Configuration] Configured SessionFactory: null
14:43:37,262 INFO [Configuration] processing one-to-many association mappings
14:43:37,262 INFO [Configuration] processing one-to-one association property re
ferences
14:43:37,262 INFO [Configuration] processing foreign key constraints
14:43:37,272 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.MySQLDialec
t
14:43:37,272 INFO [SettingsFactory] Maximim outer join fetch depth: 1
14:43:37,272 INFO [SettingsFactory] Use outer join fetching: false
14:43:37,272 INFO [DriverManagerConnectionProvider] Using Hibernate built-in co
nnection pool (not for production use!)
14:43:37,272 INFO [DriverManagerConnectionProvider] Hibernate connection pool s
ize: 1
14:43:37,272 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdb
c.Driver at URL: jdbc:mysql:/localhost/test
14:43:37,272 INFO [DriverManagerConnectionProvider] connection properties: {use
r=root, password=}
14:43:37,272 INFO [TransactionFactoryFactory] Transaction strategy: net.sf.hibe
rnate.transaction.JDBCTransactionFactory
14:43:37,272 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup
configured (in JTA environment, use of process level read-write cache is not re
commended)
14:43:37,322 INFO [SettingsFactory] Use scrollable result sets: true
14:43:37,322 INFO [SettingsFactory] Use JDBC3 getGeneratedKeys(): true
14:43:37,322 INFO [SettingsFactory] Optimize cache for minimal puts: false
14:43:37,322 INFO [SettingsFactory] echoing all SQL to stdout
14:43:37,322 INFO [SettingsFactory] Query language substitutions: {no='N', true
=1, yes='Y', false=0}
14:43:37,322 INFO [SettingsFactory] cache provider: net.sf.ehcache.hibernate.Pr
ovider
14:43:37,322 INFO [Configuration] instantiating and configuring caches
14:43:37,322 INFO [SessionFactoryImpl] building session factory
14:43:37,432 INFO [SessionFactoryObjectFactory] no JNDI name configured
14:43:37,432 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.MySQLDialec
t
14:43:37,432 INFO [DriverManagerConnectionProvider] Using Hibernate built-in co
nnection pool (not for production use!)
14:43:37,432 INFO [DriverManagerConnectionProvider] Hibernate connection pool s
ize: 1
14:43:37,432 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdb
c.Driver at URL: jdbc:mysql:/localhost/test
14:43:37,432 INFO [DriverManagerConnectionProvider] connection properties: {use
r=root, password=}
14:43:37,432 INFO [SchemaUpdate] Running hbm2ddl schema update
14:43:37,432 INFO [SchemaUpdate] fetching database metadata
14:43:37,482 INFO [SchemaUpdate] updating schema
14:43:37,482 INFO [Configuration] processing one-to-many association mappings
14:43:37,482 INFO [Configuration] processing one-to-one association property re
ferences
14:43:37,482 INFO [Configuration] processing foreign key constraints
14:43:37,522 INFO [SchemaUpdate] schema update complete
14:43:37,522 INFO [DriverManagerConnectionProvider] cleaning up connection pool
: jdbc:mysql:/localhost/test
-----------------------------------------------------------------------
Thank in advance
DF
|