1. Update automatically one Object from the database? forum.hibernate.orgI have a problem. I dont know if it is normal but when I get an object from the database, for example, from the table Person, I change some properties of this object (name, height...) and the next I do is try to do a select from this table with some Criteria, Hibernate firsts does an "update" to the object I ... |
2. Why is this automatically dirty checking my object? forum.hibernate.orgConsider the following code with an OpenSessionInView interceptor that a) opens a session and starts a transaction before this code is run b) commits the transaction and closes the session after this code is run Code: public void someMethod { ... |
3. Why save automatically? forum.hibernate.org |
4. Preprocessing an object before it is automatically persisted forum.hibernate.orgHello everyone. I am currently using Hibernate 3.1.3. I have an object A that has a reference to another object B, which has a reference to another object C and so on. I have set up cascading save and update so that persistence of A automatically persists B and C and .... Here is my question: to persist one of these ... |
5. Saving values automatically in uppercase. forum.hibernate.orgThanks, this could be a solution, but doing like this, every time that i change the mapping i need also to align the insert statement (and afaik, i will lost the DB indipendence). If there is a way to do this specifying an attribute in mapping files for each property that i need to persist in uppercase would be great. Thanks. ... |
6. Hibernate 3 updates Table content automatically forum.hibernate.orgHi I am developing a project using hibernate to store data in MySQL, the table is designed to store a tree (primary key becomes foreign key in another column). there is a design rule that any node contains descendants are not allowed to hold the total amount, it should return the summation of the descendants when getTotal() is called. it works ... |
7. Many To Many-how to automatically update teh assoc table forum.hibernate.orgGreetings first off, apologies if this has been asked and answered multiple times. I've searched through the forum as best I can and have not found this particular question, so hopfully I'm not clogging the place with a repeat question. here's the deal I've got a database set up in similar fashion to the example in the hibernate reference manual (see ... |