sql « Load « JPA Q&A





1. Hibernate JPA: Why is SQL executed?    stackoverflow.com

Is there a good way to determine why Hibernate/JPA performs a query. I have two entities linked by

@OneToOne(cascade = {CascadeType.REMOVE, CascadeType.PERSIST},
          fetch ...

2. import.sql won't load    forum.hibernate.org

Hi I am using Hibernate + Maven + Apache Derby, and creating a .jar file using maven. I can connect to Derby through Hibernate, and create a db with create=true, but it won't input my import.sql file. My hibernate config looks like this: org.apache.derby.jdbc.EmbeddedDriver jdbc:derby:safetyinformation;create=true org.hibernate.dialect.DerbyDialect create true I have tried putting ...

4. Using SQL and loading referenced objects    forum.hibernate.org

Hibernate version:3 Name and version of the database you are using:Oracle 8.1 Hi all I am using Hibernate to execute SQL queries My problem is that it seems not to initialise the referenced objects in the returned object What happens next is that each time I am accessing the returned object's referenced objects Hibernate execute a query against the database I ...

5. running sql before a load    forum.hibernate.org

Hi, I have an encrypted column in a table mapped as follows: Code: DecryptByKey is an SQL Server 2005 function, but the key that it uses for decryption ...