Re: [Hibernate] Question:

2005-01-30 Thread Max Rydahl Andersen
On Mon, 31 Jan 2005 01:55:34 +1100, Gavin King <[EMAIL PROTECTED]> wrote: Should it be org.hibernate.criteria instead of org.hibernate.criterion? Does anyone have a really strong preference? not me. Both works for me. btw. i like the separation into Projections, Restrictions, etc. much better tha

Re: [Hibernate] Question abaout multiple tables

2004-09-21 Thread Christian Bauer
On Sep 21, 2004, at 6:30 PM, Jessica Morales wrote: I got information of hibernate-relationships but in my case, the relationship are very complex. Do you know if is posible get information from some tables, with a query like that: This is the developer mailing list, please use the user forum. -- C

Re: [Hibernate] Question about caching

2004-09-15 Thread Gavin King
ReadWriteCache does stuff to preserve txn isolation. Things remain "locked" for a bit longer than you might expect. You need to do the lookup in a second txn, that starts unambiguously *after* the updating txn ends. Michał Mosiewicz wrote: I've been testing cache. I've noticed there is much les

Re: [Hibernate] Question about your Wiki implementation

2003-12-04 Thread Christian Bauer
On 04 Dec (11:22), Miller Charles - Nashville wrote: > I see that you are using coWiki. Which version are you using? I am looking > to install one for an internal developer community where I work. Must be 0.3.1 or something like that. I would recommend the latest version declared as "working" o

Re: [Hibernate] question

2003-10-25 Thread Christian Bauer
On 23 Oct (12:44), Nikolay Ganev wrote: > I need to add and retrieve object to/from Hibernate Session. In other words I need 2 > methods in session: > getObject() > setObject(...) Why?! -- Christian Bauer [EMAIL PROTECTED] --- This SF.net em

Re: [Hibernate] question

2003-10-23 Thread Max Rydahl Andersen
eh ? what object does getObject() return ? What are the parameters of setObject(...) ? What is the use of this thing? /max Nikolay Ganev wrote: HI all, I need to add and retrieve object to/from Hibernate Session. In other words I need 2 methods in session: getObject() setObject(...) SessionImpl

RE: [Hibernate] question

2003-10-23 Thread Urberg, John
Nikolay, Here's the code I use to pull an object out of the session cache: // session is an instance variable declared as SessionImpl private Object getCachedObject(Class clazz, Serializable id) { try { ClassPersister persister = session.getFactory().getPersister(clazz); Key key = new K

RE: [Hibernate] Question on Session.connection

2003-09-10 Thread Chandrasekhar Ambadipudi
Thanks, it worked. -Original Message- From: Gavin King [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 11:21 AM To: Chandrasekhar Ambadipudi Cc: '[EMAIL PROTECTED]' Subject: Re: [Hibernate] Question on Session.connection Just call sess.flush() ... you can call

Re: [Hibernate] Question on Session.connection

2003-09-10 Thread Gavin King
Just call sess.flush() ... you can call it at any time :) Chandrasekhar Ambadipudi wrote: I have a transaction like this Transaction tx = sess.beginTransaction(); sess.save(obj) sess.connection() // and one prepared statm

Re: [Hibernate] Question about best practices on creating hibernate session

2003-08-14 Thread Christian Bauer
On 11 Aug (17:20), Vivian Fonger wrote: > Can someone explain to me what does it mean by "Never create more than > one concurrent Session or Transaction instance per database connection" > which is mentioned in Section 13.2 - Threads and Connection under > Hibernate2 Reference Documentation??? Do

Re: [Hibernate] question about dialects..

2003-02-07 Thread Gavin . King
I deprecated it because I don't want SchemaExport to depend upon functionality that is available on so few platforms. However, SchemaUpdate probably *could* be allowed to use this. So I havn't removed it yet.

Re: [Hibernate] question on H2 roadmap progress

2003-01-10 Thread Gavin . King
I committed this to the Hibernate2 module last night, in fact. I have added an interface called Configurable to the id package. Check that out to see how it works. Hibernate2 will always use default constructors to instantiate id generators. ==

Re: [Hibernate] Question about query language

2002-11-21 Thread Brad Clow
The identifier after the "from" does not refer to a table.  Perhaps the factthat your class was named MyTable in your example confused things a little.As an example:from bar in foo.model.Barbar is simply an alias for the fully qualified name, much like the "t" inthe following sql statement:

Re: [Hibernate] Question about query language

2002-11-20 Thread Christoph Sturm
Hi Jürgen! - Original Message - From: "Donnerstag, Juergen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 11:49 AM Subject: [Hibernate] Question about query language > > Would somebody please explain to me why it is necessary to define the table > name as

Re: [Hibernate] Question about onUpdate

2002-09-11 Thread Gavin King
> It appears to me that the onUpdate() method is not getting called when it should. onUpdate() gets called only when you explicitly pass a transient object to Session.update(). ie. its called when a transient object becomes "sessional". Its not called when an dirty object is UPDATEd on the databas