database « Load « JPA Q&A





1. Representing incomplete objects when loading from database    stackoverflow.com

So in a recent project (a small internal tool), I want to experiment with not using an ORM tool which we typically use in all our projects. The reason is that ...

2. Hibernate not Loading a class    stackoverflow.com

I have a class Auction that contains a Class Item and Users but when I am getting the class, the class item and Users are not being loaded. Auction Class Mapping File:

<?xml ...

3. Loading Object from Database for read only    forum.hibernate.org

Hi, We found that when we use Criteria API to retrieve persisted objects from database, the database is issuing a Shared lock on the Page of the table where the Objects are persisted. We are wondering if there is a way to avoid this. We need to read object for readonly, not producing shared lock. We are using Hibernate 3.2.6 and ...

4. Load name-value pairs from DB to a java.util.Map property?    forum.hibernate.org

Hello to all Hibernate gurus! My simple question in short: how to load name-value pairs from DB (no associations to any other table(s)!) to a java.util.Map property of an object. In more detail: I have a simple class for holding application configuration with a Map of parameters where key and value are Strings: public class Configuration { private Map params; // ...

5. How database calls are made to load a set (one-to-many)    forum.hibernate.org

here is an interesting situation Code: I execute a Query and got a List of abc.def.Class1 ...

6. Fine grained control of what properties load from DB.    forum.hibernate.org

I have what must be a fairly common problem. I have a table that has one column in it that I wouldn't normally want to load with the rest of the table, since it's often large. I have maintainability and performance reasons for not wanting to put this other column in a separate table and using a one-to-one association. There's no ...

7. How hibernate load object from DB?    forum.hibernate.org

My reference say that the tag "many-to-one" did not provide an attribute "lazy=true"! I would like to access the Address object without listing in the query all other objects in the mapping file to workaround the problem. Really I have experienced this problem with a chain more complex (six level of parent child).

8. Problem loading a serializable object from database    forum.hibernate.org

Hi all! I'm having a problem when I try to load data from a table that contains a column of type BLOB that contains a serialized java object (i'm using Oracle 8i and Hibernate 2.1). I executed the save operation and the object is stored in the database, but when i try to load it again this exception is thrown: net.sf.hibernate.type.SerializationException: ...

9. Can You Intercept loading of objects from the database?    forum.hibernate.org

Hibernate version: 3.0.1 Name and version of the database you are using: DB2 for z/OS v7 We've been trying to optimize the performance of some parts of our application, and we were wondering if it's possible to configure Hibernate with some type of handler or interceptor that gets invoked at the moment that Hibernate tries to load certain items from the ...





10. Problem with loading objects (restart->db is overwritten)    forum.hibernate.org

Hibernate version: 1.3.1 Name and version of the database you are using: HSQLDB 1.8.0 My Problem: I managed to persist my java objects and store them in the dbname.script file of my standalone hsqldb. Everything seems to work fine. I can make queries and load the objects from my db if I do it right after having stored them in my ...