From: Manish B. (JIRA) <ji...@an...> - 2007-07-05 04:48:34
|
[ http://jira.andromda.org/browse/HIB-199?page=comments#action_14630 ] Manish Baxi commented on HIB-199: --------------------------------- Hi Chad I have been heads down on my project and therefore not able to attend to upload the patch. I have however employed another workaround in the meanwhile. In andromda.xml I have set the property ehCacheMaxElementsInMemory to 1 (instead of the default 0) and ehCacheOverflowToDisk to false. This way, 1 object of every entity type is cached in memory, which is not so bad since at least one object of every entity type will any way be required in memory. Once I get freed up from this project (some time around middle of August), I will be able to create the patch for this and upload it. Cheers - Manish > Enabling caching of objects should not enable it for all entities > ----------------------------------------------------------------- > > Key: HIB-199 > URL: http://jira.andromda.org/browse/HIB-199 > Project: Hibernate Cartridge > Type: New Feature > Versions: 3.2-RC1 > Reporter: Manish Baxi > Assignee: Carlos Cuenca > Priority: Critical > Attachments: andromda-hibernate-cartridge-3.2.jar > > We have an application with thousands of entities, out of which about 100 are meant to store static or reference data while the others are purely transactional in nature and change too frequently. There is a strong business case to cache objects of static or reference types but not of the transactional type. > Before we started using AndroMDA, we were already using HIBERNATE and EHCACHE and had caching enabled for individual classes where caching was required. After moving to AndroMDA we have discovered that it isn't possible to turn caching on for individual objects. This is quite painful for us as right now we desperately need caching but turning it on forces entries for all entities into the ehcache.xml file although we do not want that behaviour. > My suggestion is that besides the property that controls caching in the Namespace, another property be added to the Profile that will allow us to control caching of individual entities through the tagged values. An entry should be made to ehcache.xml only if the property is set both in the namespace and the profile for an entity. > Right now I have specified cache-type=none in andromda.xml and then overridden it in tagged values for the entities where I need caching. I have also modified the cartridge locally to check whether cache-type is set to something other than none and only then generate a cache entry for that entity. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |