Code:
Hibernate: insert into TRANSACTIONS (PROVIDERID, MAC, EVENTID, PRICE, TIMESTAMP, SELECTIONID, TEXTSTRING, EXPORTEDFORPOSTPROCESSING, EXPORTEDFORBILLING, TRANSACTIONID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, null)
Hibernate: call identity()
Hibernate: insert into TRANSACTIONS (PROVIDERID, MAC, EVENTID, PRICE, TIMESTAMP, SELECTIONID, TEXTSTRING, EXPORTEDFORPOSTPROCESSING, EXPORTEDFORBILLING, TRANSACTIONID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, null)
Hibernate: call identity()
Hibernate: insert into TRANSACTIONS (PROVIDERID, MAC, EVENTID, PRICE, TIMESTAMP, SELECTIONID, TEXTSTRING, EXPORTEDFORPOSTPROCESSING, EXPORTEDFORBILLING, TRANSACTIONID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, null)
Hibernate: call identity()
Hibernate: select transactio0_.TRANSACTIONID as TRANSACT1_0_, transactio0_.PROVIDERID as PROVIDERID0_, transactio0_.MAC as MAC0_, transactio0_.EVENTID as EVENTID0_, transactio0_.PRICE as PRICE0_, transactio0_.TIMESTAMP as TIMESTAMP0_, transactio0_.SELECTIONID as SELECTIO7_0_, transactio0_.TEXTSTRING as TEXTSTRING0_, transactio0_.EXPORTEDFORPOSTPROCESSING as EXPORTED9_0_, transactio0_.EXPORTEDFORBILLING as EXPORTE10_0_ from TRANSACTIONS transactio0_
I'm assuming Hibernates generates the SELECT statement to keep its corresponding POJO's up-to-date. If I'm no longer interested in the Transaction objects after they are INSERTed into the DB, there's no point in performing a SELECT to update them. How can I make it clear to Hibernate that it should not perform the SELECT statement? Thanks!