Re: [Hibernate] CacheMode

2005-01-27 Thread Gavin King
Now that I've done it, I love it! We should have had this notion a long 
time ago. Very nice.

Gavin King wrote:
Do I got any votes for TODO-124?
The proposal is to allow control over how the session interacts with 
the second-level cache. Options are:

 CacheMode.NORMAL
 CacheMode.IGNORE
 CacheMode.PUT
 CacheMode.GET
I think its useful to have sessions that ignore the second level cache 
in some circumstances


--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
http://jboss.com

---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] LockMode.UPGRADE doesn't work with Informix database

2005-01-27 Thread Hess Yvan
Hi,

I have a kinds of counter that I have to increase and I am doing the
following action:

session = sf.openSession(); 
tx = session.beginTransaction(); 

DocNrCounterPJO counter = (DocNrCounterPJO )
aHibernateSession.get(DocNrCounterPJO .class, anId, aLockMode);
counter.currentStatus++;

// Do something... 
Thread.sleep(1); 

session.update(counter);
session.flush();
session.commit();
session.close();

I am using Informix as target database and I saw that my row (counter) I
selected is not locked. I can access it during the sleep time using an
external SQL. The generated hibernate SQL statement seems to be correct
(SELECT ... FOR UPDATE).

Can somebody help me? Where is the problem ?

Thanks for your answer it is very critical. Yvan

PS: I am using Hibernate 2.1.4



Yvan Hess
Chief Software Architect

e-mail: [EMAIL PROTECTED]
phone : +41 (0)26 460 66 66 
fax   : +41 (0)26 460 66 60 

Informatique-MTF SA
Route du Bleuet 1 
CH-1762 Givisiez 

Excellence in Compliance and Document Management
http://www.imtf.com

DISCLAIMER 
This message is intended only for use by the person to whom it is addressed.
It may contain information that is privileged and confidential. Its content
does not constitute a formal commitment by IMTF. If you are not the intended
recipient of this message, kindly notify the sender immediately and destroy
this message. Thank You.



---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] LockMode.UPGRADE doesn't work with Informix database

2005-01-27 Thread Max Rydahl Andersen
Asking user questions is in the user forum - asking it twice
in development mailinglist will not give you a better answer ;)

Thanks for your answer it is very critical. Yvan
If its that critical for you then consider commercial support.
/max
---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] TypeFactory.java

2005-01-27 Thread Joshua Davis
TypeFactory.java doesn't seem to be compiling this evening because 
CustomCollectionType doesn't exist.   Any ideas?

Josh

---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] API name changes

2005-01-27 Thread Christian Bauer
Starting with H3, we recommend the new EJB3-style operations create() 
and merge().

We still have our old methods: save(), update(), saveOrUpdate(), with 
slightly different semantics. What do you think about save(), attach(), 
saveOrAttach()? It might be too much code to change, but this is really 
our last chance to fix it and to help people think in object states, 
not SQL statements (something I repeat about 10 times during a 
Hibernate training).

--
Christian Bauer
callto://christian-bauer
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
http://jboss.com 


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel