call a procedure from a dao, using hibernate
by elyes sallem
hello,
i have a procedute that make some treatment, such as data modification
and i wanna know how can i call this procedure from hibernate
Regards
Elyes
--
Elyes.
16 years, 2 months
Batching the fetching of relationships?
by Robert Nicholson
I'm looking into some performance improvements with a one to many
relationship that has a lot of objects on the to-many side.
When I'm looking at the hibernate 3.2.2a code in the tx.commit() which is
taking up to and longer than 1 second to commit.
Specifically the transactionContext.managedFlush(); call....
When I look at the log I notice preparedStatements being used to query back
all the destination ended objects from the database instead of hitting 2nd
level cache where I know they should …
[View More]be.
I don't see anything in the log telling me there's a 2nd level cache miss so
am I expecting the wrong thing when I expect to see 2nd level cache activity
during the flushing of the transaction.
Is this something related to optimistic locking? ie. it's fetching everyting
back to see what's changed relative to the transaction it's processing now?
If this is the case why is it generating a separate prepared statement for
each and every object on the destination end of the relationship?
[View Less]
16 years, 2 months
Batching the fetching of relationships?
by Robert Nicholson
If you specify batch-size for the destination entity at the <class
level will that have any affect on batching when it's fetched via it's
parent object? If you have eager loading must u specify batch-size on
each individual association if you want to fetch those related objects
to use batching?
16 years, 2 months
get the hibernate configuration information
by elyes sallem
Hello every body,
i'm new in this list and i wanna just know , how to get back the hibernate
configuration informations
such as the server, the database schema ..., in java
Regards
Elyes.
16 years, 3 months