-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: transactional cache concurrency strategy problem
PostPosted: Fri Oct 29, 2004 12:04 pm 
Newbie

Joined: Thu Feb 26, 2004 7:29 am
Posts: 17
hi all,
i'm using jboss tree cache (jboss 3.2.3, hibernate 2.1.2) and am trying to set some of my hibernate classes to use a transactional cache concurrency strategy.

i'm using xdoclet (1,2) to generate my .hbm.xml files and for the most this works perfectly.
however when i try to set the concurrency strategy to be transactional like :

Code:
* @hibernate.class  table="hbm_country"
* @hibernate.cache  usage="transactional"


i get an exception saying 'transactional' is not an allowed value for usage, only 'read-write,nonstrict-read-write,read-only' are allowed :

Code:
[hibernatedoclet]    com.yahoo.gmmh.hibernate.Country
[hibernatedoclet] ERROR [main] (XDocletMain.java:53) - Running XDoclet failed.
[hibernatedoclet] ERROR [main] (XDocletMain.java:54) - <<The value 'transactional' specified for parameter 'usage' of hibernate.cache tag in com.yahoo.gmmh.hibernate.Country class is not valid. Valid values for this tag are:{read-write,nonstrict-read-write,read-only}.>>
[hibernatedoclet] D:\development\gmmh\yahoo\properties\wireless\gmmh\build.xml:310: XDoclet failed.
[hibernatedoclet]       at xdoclet.DocletTask.start(DocletTask.java:467)


obviously this is a big problem if i want to use a transactional concurrency strategy with jboss treecache.

has anybody got this to work or knows a work around???

any help is greately appreciated.

cheers,
colum


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 29, 2004 12:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
I seem to recall that XDoclet does not recognize the transactional cache usage value. Its a problem with XDoclet, but don't really recall the fix (though I seem to recall it was minor).

Search the forums...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.