-->
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: trying to plug in CacheProvider into hibernate-2.1.
PostPosted: Fri May 14, 2004 1:27 pm 
Newbie

Joined: Thu May 13, 2004 6:32 am
Posts: 4
Location: USA
Hi,

We are trying to plug in CacheProvider into hibernate-2.1.
We have implemented the CacheProvider and Cache Interfaces.
When running a test program - at the Cache.put method we are getting always the same key value for different objects.

What we are missing?

The test program:
--------------------
public static void main(String[] args) throws Exception {
Configuration cfg = new Configuration()
.addClass(Record.class);
SessionFactory sf = cfg.buildSessionFactory();
new SchemaExport(cfg).create(true, true);


Session s = sf.openSession();
for ( int i=0; i<10; i++ ) {
Record rec = new Record();
rec.setDescription("a long description yadayadayada foo bar fee fi fo fum" + i);
rec.setName("Record " + i);
rec.setTimestamp( new Date() );
rec.setQuantity(i*50);
rec.setPrice( new BigDecimal(i*2.45) );
rec.setSerialNumber( Integer.toString(i*100) );
s.save(rec);
}
s.flush();
s.connection().commit();
s.close();

sf.close();

}


-------------------


Best Regards,
Shay
----------------------------------------------------
Shay Hassidim
Product Manager, GigaSpaces Technologies
Email: shay@gigaspaces.com
Website: www.gigaspaces.com


Top
 Profile  
 
 Post subject: This is very importent to us
PostPosted: Mon May 17, 2004 1:56 pm 
Newbie

Joined: Thu May 13, 2004 6:32 am
Posts: 4
Location: USA
Guys,

This is very importent to us.
Can someone look into this?

shay


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 17, 2004 2:07 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please stop sending emails (with invalid reply addresses) to us.

You will have to wait until someone has time to look at your problem on the User Forum or you actually buy support with guaranteed response times. Sorry, but we are very busy right now.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.