1. Is there a way to read a Hibernate Session as RDF triples? stackoverflow.comI need to query my local Hibernate managed datastore for persisted objects based on criteria where the relevant data for the WHERE clause is in the Linked Open Data cloud. Is there ... |
2. Grails Hibernate Session Read Only stackoverflow.comI have two grails servers:
|
3. Cannot read external changes in DB after session started forum.hibernate.orghi, Below is my observation: 1. Table A has 2 rows 2. Start a hibernate session 3. Remove one of the rows from table A using external operation (for example, manually remove it from some query browser) 4. Call findAll on the table A. It loads 2 entries, but I am expecting 1 as the db table A should only have ... |
4. sharing session between threads - when reading only ? forum.hibernate.orgHi, it is specified that Session is not thread-safe. But is this true also if I only read the objects from the database ? My problem: I have ConfigData object that holds the tree of persistent Java beans representing the configuration data. Some of the collections are set to be lazily loaded. Now, I want to have single instance of the ... |
5. reference read-only objects in another session forum.hibernate.orgFor performance reasons I want to keep some often-used objects in memory. These objects are read-only and are referenced by other objects. For this reason I implemented a small cache. However, I run into problems when referencing these objects, because I have another session then. If I have both sessions open, I get a "Illegal attempt to associate a collection with ... |
6. Make a session read-only forum.hibernate.orgI don't think this method exists. Another way to do it could be putting the transaction in readonly mode, instead of the session. But no standard hibernate method let you do it. For my case, I do it in the tx demarcation xml file(the declaration of my tx proxy). Maybe also see Query.setReadOnly(boolean), every queries in this mode will retrieve entities ... |
7. read dialect of SessionFactory? forum.hibernate.org |