1. Hibernate second-level cache composite-id stackoverflow.comI am trying to cache an object in Hibernate's second level cache that has a composite-id mapped in my persistence-mapping file. The logs say that the first time I run ... |
2. caching composite-element collection forum.hibernate.orgBeginner Joined: Tue Aug 26, 2003 6:24 pm Posts: 45 Hi All - I have a Set collection mapped with a composite-element. I'm using spring, and after each session.load(), the session is flushed. With this collection, during the flush the collection is deemed dirty, which causes a chain reaction of updates and cache invalidations that I don't want. Any suggestions on ... |
3. Issue with composite key and caching forum.hibernate.orgHi, I'm using hibernate version 2.1 with OSCache for process level caching. Using MS SQL. Till now, I was using it to cache objects with a single key and it worked. Now I'm trying to cache an object with a composite key and it fails and instead retrieves the data from the db all the time. I have put some debug ... |
4. composite-id + cache forum.hibernate.orghi, i had to create a composite pk for read-only data. when loading such a bean, the logs give those strange things: 11:25:24,079 DEBUG SessionImpl:1975 - loading [eg.Foo#eg.FooPK@5c1592c0] 11:25:24,080 DEBUG SessionImpl:2072 - attempting to resolve [eg.Foo#eg.FooPK@5c1592c0] 11:25:24,082 DEBUG ReadOnlyCache:27 - Cache hit: eg.FooPK@5c1592c0 The reference of the FootPK instance seems to be used as the cache key!? Is it normal or ... |
5. Caching of composite-elements in a List forum.hibernate.orgHi, I have a problem with caching composite-elements inside a list. Whenever I load an instance of Test after having updated the results list, the results list gets initialized, which means a database SELECT is issued. If I am right, this should not be the case, when caching for the list ist turned on, right? Is the collection cache invalidated, when ... |
6. Problem when using second level cache and composite id's forum.hibernate.orgHi. Can anyone tell me what is wrong with this setup. We've had lots of problems in our application when trying to cache components with composite id's into the second level cache (ehcache or HashTableCache). I've extracted an example set-up below, which describes the problem. There's two tables with primary keys that consist of two integer fields. They are in no ... |
7. COMPOSITE ID PROBLEM USING CACHE forum.hibernate.orghello. i'm using a composite id for a table and the cache mecanism from hibernate to keep the table in memory. it works fine but it takes a very long time for a query, allmost 90 seconds for 6000 records (without composite id 0,32 sec)!!! and i don't know the reason. if u have an idea, please help me. thanks Gabi ... |
8. Composite key and caching forum.hibernate.orgHibernate version: 3 Name and version of the database: Oracle 9i I'm new to Hibernate and I want to understand more about the level 1 caching. I have a table that represents courses taken by a person. The primary key is composite: PERSON_ID String COURSE_ID Integer I thought I could read all rows from the table (and have them cached) and ... |