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
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
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
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
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
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
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
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
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
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
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.
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.
==
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:
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
> 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
15 matches
Mail list logo