hello again curio,
thanx for the help. finally got the logger to work.. i have intentionally cleared a few of the details (timestamp, source thread/process, etc.). i just retained the dash to know if its a new line or continuation
Code:
- updating
- current autocommit status:false
- updating [net.telic.rtbec.pam.hibernate.Rtbepamavailability#net.telic.rtbec.pam.hibernate.Rtbepamavailability@1184a4f[identity1=2741,identity2=1]]
- commit
- flushing session
- Flushing entities and processing referenced collections
- Updating entity: [net.telic.rtbec.pam.hibernate.Rtbepamavailability#net.telic.rtbec.pam.hibernate.Rtbepamavailability@1184a4f[identity1=2741,identity2=1]]
- Processing unreferenced collections
- Scheduling collection removes/(re)creates/updates
- Flushed: 0 insertions, 1 updates, 0 deletions to 1 objects
- Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
- listing entities:
- net.telic.rtbec.pam.hibernate.Rtbepamavailability{reason=testing, availability=1}
- executing flush
- Updating entity: [net.telic.rtbec.pam.hibernate.Rtbepamavailability#net.telic.rtbec.pam.hibernate.Rtbepamavailability@1184a4f[identity1=2741,identity2=1]]
- about to open: 0 open PreparedStatements, 0 open ResultSets
- update RTBEPAM.RTBEPAMAVAILABILITY set AVAILABILITY=?, REASON=? where IDENTITY1=? and IDENTITY2=?
- preparing statement
- Dehydrating entity: [net.telic.rtbec.pam.hibernate.Rtbepamavailability#net.telic.rtbec.pam.hibernate.Rtbepamavailability@1184a4f[identity1=2741,identity2=1]]
- binding '1' to parameter: 1
- binding 'testing' to parameter: 2
- binding '2741' to parameter: 3
- binding '1' to parameter: 4
- Adding to batch
- Executing batch size: 1
- success of batch update unknown: 0
- done closing: 0 open PreparedStatements, 0 open ResultSets
- closing statement
- post flush
- transaction completion
- flushing session
- Flushing entities and processing referenced collections
- Processing unreferenced collections
- Scheduling collection removes/(re)creates/updates
- Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
- Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
- listing entities:
- net.telic.rtbec.pam.hibernate.Rtbepamavailability{reason=testing, availability=1}
- executing flush
- post flush
i need a compositeid coz i need to ensure that both exists and the combination is unique. im in telephony and technically, if i am already talking to you, i shouldnt be able to use the same number to call you again unless i hang up, ryt?
kinda odd that so many flush happened. i was expecting only two at most.
Code:
- Flushed: 0 insertions, 1 updates, 0 deletions to 1 objects
- Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
...
...
- Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
- Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
i guess this means that the latter did not succeed, but still did not throw any errors.
Code:
- current autocommit status:false
- updating [net.telic.rtbec.pam.hibernate.Rtbepamavailability#net.telic.rtbec.pam.hibernate.Rtbepamavailability@1184a4f[identity1=2741,identity2=1]]
...
...
- Dehydrating entity: [net.telic.rtbec.pam.hibernate.Rtbepamavailability#net.telic.rtbec.pam.hibernate.Rtbepamavailability@1184a4f[identity1=2741,identity2=1]]
- binding '1' to parameter: 1
- binding 'testing' to parameter: 2
- binding '2741' to parameter: 3
- binding '1' to parameter: 4
- Adding to batch
- Executing batch size: 1
- success of batch update unknown: 0
the bounded values are accurate. though i dont understand why an update is called so early. is it because i created an instance of Rtbepamavailability using 'new'? also, stating success of batch update unknown.... errr... ???
i do not use saveOrUpdate() because this would mean that if it does not exist, it would insert, ryt? i intend to keep those two separate (insert and update). for this method, i only intend to update. how did your test case went? did it throw exceptions?
much thanx again for the time and attention. i really appreciate the help :)