-->
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.  [ 3 posts ] 
Author Message
 Post subject: What is the right way for specifying collection-cache?
PostPosted: Fri Jan 02, 2004 3:14 pm 
Newbie

Joined: Mon Dec 08, 2003 2:21 pm
Posts: 10
Use a person class as an example,

<class
name="Person"
table="person"
>
......

<set name="accounts" lazy="true" table="account">
......
</set>

</class>

I would like to use the <collection-cache> tag in the Hibernate configuration file, what would be the correct format for the name value?

<hibernate-configuration>
<session-factory>
......
<collection-cache collection="name" usage="read-write"/>

......
</session-factory>
</hibernate-configuration>

Is it "Person.accounts"?

TIA


Top
 Profile  
 
 Post subject: Re: What is the right way for specifying collection-cache?
PostPosted: Mon Oct 18, 2004 11:02 am 
Beginner
Beginner

Joined: Fri Aug 13, 2004 3:07 pm
Posts: 44
[quote

Is it "Person.accounts"?

TIA[/quote]

Yes. It is.

_________________
Thanks
Sameet


Top
 Profile  
 
 Post subject: Re: What is the right way for specifying collection-cache?
PostPosted: Mon Oct 18, 2004 11:29 am 
Beginner
Beginner

Joined: Fri Aug 13, 2004 3:07 pm
Posts: 44
jhcadr wrote:
Use a person class as an example,

<class
name="Person"
table="person"
>
......

<set name="accounts" lazy="true" table="account">
......
</set>

</class>

I would like to use the <collection-cache> tag in the Hibernate configuration file, what would be the correct format for the name value?

<hibernate-configuration>
<session-factory>
......
<collection-cache collection="name" usage="read-write"/>

......
</session-factory>
</hibernate-configuration>

Is it "Person.accounts"?

TIA


Yes. It is.

_________________
Thanks
Sameet


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.