OK... so tha'ts exaclty what i did. The output is copied below.
I can see what's going on, but i couldn't figure out what's wrong. There's this line saying "success of batch update unknown: 0". I can only understand that's bad.
I'll keep digging.
Thanks a lot for all the help.
Eduardo
Code:
DEBUG 09:00:53,226 (SessionImpl.java:<init>:250)  -opened session at timestamp: 4632994010013696
 DEBUG 09:00:53,246 (DefaultSaveOrUpdateEventListener.java:entityIsTransient:159)  -saving transient instance
 DEBUG 09:00:53,256 (AbstractBatcher.java:logOpenPreparedStatement:290)  -about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
 DEBUG 09:00:53,256 (ConnectionManager.java:openConnection:296)  -opening JDBC connection
 DEBUG 09:00:53,256 (DriverManagerConnectionProvider.java:getConnection:93)  -total checked-out connections: 0
 DEBUG 09:00:53,256 (DriverManagerConnectionProvider.java:getConnection:99)  -using pooled JDBC connection, pool size: 0
 DEBUG 09:00:53,266 (AbstractBatcher.java:log:324)  -select SEQTCOMPONENT.nextval from dual
 Hibernate: select SEQTCOMPONENT.nextval from dual
DEBUG 09:00:53,266 (AbstractBatcher.java:getPreparedStatement:378)  -preparing statement
 DEBUG 09:00:53,287 (SequenceGenerator.java:generate:87)  -Sequence identifier generated: 11
 DEBUG 09:00:53,287 (AbstractBatcher.java:logClosePreparedStatement:298)  -about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
 DEBUG 09:00:53,287 (AbstractBatcher.java:closePreparedStatement:416)  -closing statement
 DEBUG 09:00:53,297 (AbstractSaveEventListener.java:saveWithGeneratedId:100)  -generated identifier: 11, using strategy: org.hibernate.id.SequenceGenerator
 DEBUG 09:00:53,297 (AbstractSaveEventListener.java:performSave:133)  -saving [mypackage.Component#11]
 DEBUG 09:00:53,507 (AbstractFlushingEventListener.java:flushEverythingToExecutions:52)  -flushing session
 DEBUG 09:00:53,507 (AbstractFlushingEventListener.java:prepareEntityFlushes:102)  -processing flush-time cascades
 DEBUG 09:00:53,507 (AbstractFlushingEventListener.java:prepareCollectionFlushes:150)  -dirty checking collections
 DEBUG 09:00:53,517 (AbstractFlushingEventListener.java:flushEntities:167)  -Flushing entities and processing referenced collections
 DEBUG 09:00:53,517 (AbstractFlushingEventListener.java:flushCollections:203)  -Processing unreferenced collections
 DEBUG 09:00:53,517 (AbstractFlushingEventListener.java:flushCollections:217)  -Scheduling collection removes/(re)creates/updates
 DEBUG 09:00:53,517 (AbstractFlushingEventListener.java:flushEverythingToExecutions:79)  -Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
 DEBUG 09:00:53,517 (AbstractFlushingEventListener.java:flushEverythingToExecutions:85)  -Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
 DEBUG 09:00:53,517 (Printer.java:toString:83)  -listing entities:
 DEBUG 09:00:53,517 (Printer.java:toString:90)  -mypackage.Component{componentDesc=1 comp, componentNum=11}
 DEBUG 09:00:53,517 (AbstractFlushingEventListener.java:performExecutions:267)  -executing flush
 DEBUG 09:00:53,527 (BasicEntityPersister.java:insert:1825)  -Inserting entity: [mypackage.Component#11]
 DEBUG 09:00:53,527 (AbstractBatcher.java:logOpenPreparedStatement:290)  -about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
 DEBUG 09:00:53,527 (AbstractBatcher.java:log:324)  -insert into TBLTCOMPONENT (COMPONENT_DESC, COMPONENT_NUM) values (?, ?)
 Hibernate: insert into TBLTCOMPONENT (COMPONENT_DESC, COMPONENT_NUM) values (?, ?)
DEBUG 09:00:53,527 (AbstractBatcher.java:getPreparedStatement:378)  -preparing statement
 DEBUG 09:00:53,527 (BasicEntityPersister.java:dehydrate:1612)  -Dehydrating entity: [mypackage.Component#11]
 DEBUG 09:00:53,537 (NullableType.java:nullSafeSet:59)  -binding '1 comp' to parameter: 1
 DEBUG 09:00:53,567 (NullableType.java:nullSafeSet:59)  -binding '11' to parameter: 2
 DEBUG 09:00:53,567 (BatchingBatcher.java:addToBatch:27)  -Adding to batch
 DEBUG 09:00:53,567 (BatchingBatcher.java:doExecuteBatch:54)  -Executing batch size: 1
 DEBUG 09:00:53,627 (BatchingBatcher.java:checkRowCount:84)  -success of batch update unknown: 0
 DEBUG 09:00:53,627 (AbstractBatcher.java:logClosePreparedStatement:298)  -about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
 DEBUG 09:00:53,627 (AbstractBatcher.java:closePreparedStatement:416)  -closing statement
 DEBUG 09:00:53,637 (AbstractFlushingEventListener.java:postFlush:294)  -post flush
 DEBUG 09:00:53,637 (SessionImpl.java:close:269)  -closing session
 DEBUG 09:00:53,637 (ConnectionManager.java:closeConnection:317)  -closing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
 DEBUG 09:00:53,637 (DriverManagerConnectionProvider.java:closeConnection:129)  -returning connection to pool, pool size: 1
 DEBUG 09:00:53,637 (JDBCContext.java:afterTransactionCompletion:283)  -after transaction completion
 DEBUG 09:00:53,637 (SessionImpl.java:afterTransactionCompletion:403)  -after transaction completion
 DEBUG 09:00:53,647 (SessionImpl.java:<init>:250)  -opened session at timestamp: 4632994011738112
 intIndex: 1
DEBUG 09:00:53,647 (AbstractBatcher.java:logOpenPreparedStatement:290)  -about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
 DEBUG 09:00:53,657 (ConnectionManager.java:openConnection:296)  -opening JDBC connection
 DEBUG 09:00:53,657 (DriverManagerConnectionProvider.java:getConnection:93)  -total checked-out connections: 0
 DEBUG 09:00:53,657 (DriverManagerConnectionProvider.java:getConnection:99)  -using pooled JDBC connection, pool size: 0
 DEBUG 09:00:53,657 (AbstractBatcher.java:log:324)  -select this_.COMPONENT_NUM as COMPONENT1_0_, this_.COMPONENT_DESC as COMPONENT3_57_0_ where this_.COMPONENT_DESC like ? order by this_.COMPONENT_DESC asc
 Hibernate: select this_.COMPONENT_NUM as COMPONENT1_0_, this_.COMPONENT_DESC as COMPONENT3_57_0_ where this_.COMPONENT_DESC like ? order by this_.COMPONENT_DESC asc
DEBUG 09:00:53,657 (AbstractBatcher.java:getPreparedStatement:378)  -preparing statement
 DEBUG 09:00:53,657 (NullableType.java:nullSafeSet:59)  -binding '1 comp%' to parameter: 1
 DEBUG 09:00:53,667 (AbstractBatcher.java:logOpenResults:306)  -about to open ResultSet (open ResultSets: 0, globally: 0)
 DEBUG 09:00:53,667 (Loader.java:doQuery:405)  -processing result set
 DEBUG 09:00:53,747 (Loader.java:doQuery:429)  -done processing result set (0 rows)
 DEBUG 09:00:53,747 (AbstractBatcher.java:logCloseResults:313)  -about to close ResultSet (open ResultSets: 1, globally: 1)
 DEBUG 09:00:53,757 (AbstractBatcher.java:logClosePreparedStatement:298)  -about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
 DEBUG 09:00:53,827 (AbstractBatcher.java:closePreparedStatement:416)  -closing statement
 DEBUG 09:00:53,837 (Loader.java:initializeEntitiesAndCollections:528)  -total objects hydrated: 0
 DEBUG 09:00:53,837 (PersistenceContext.java:initializeNonLazyCollections:789)  -initializing non-lazy collections
 DEBUG 09:00:53,837 (JDBCContext.java:afterNontransactionalQuery:322)  -after autocommit