Will the Codegenerator of the future
(http://hibernate.bluemars.net/52.html#17) replace the current
ReverseGenerator? What I mean is that I have used the ReverseGenerator to
create a TableName.java class and it's accompanying TableName.hbm.xml. This
works great and I applaud you all on making thi
I am looking to create a custom id generator for my project and noticed
several planned "enhancements" for H2 in the id generator area. Two are
specific generator cases, so I am not concerned with them. What I would like
to know is how far has the planning gone for
* named id generator parameters
hi,
On Thu, 9 Jan 2003 10:03:32 -0700, "Russell Smyth"
<[EMAIL PROTECTED]> said:
> our current main use is a field that is write-once. We would like to
> dissallow "re-setting" of the field once it is set, but by dissallowing
> resetting the property, hibernate cannot re-instantiate the object
>
Yes, I forgot this DBCP "feature", validation query has no effect if
"testOnReturn" or "testOnBorrow" is not set.
"testOnReturn" is not very meaningfull, but you must set "testOnReturn" to
true if "validationQuery" is set.
> As a follow-up to my last message, DBCP still times out,
> even with th
We ran into a situation that we belived we could solve through the Lifecycle
methods, but we found something lacking.. currently there is
onSave
onUpdate
onDelete
onLoad
all of these are called BEFORE the appropriate action is performed. What we
would like is a complementary set of AFTER calls
o
As a follow-up to my last message, DBCP still times out,
even with the validationQuery config property set. As an
experiment, I modified DBCPConnectionProvider as follows:
ObjectPool connectionPool = new GenericObjectPool(
null,
Integer.parseInt( props.getProperty(Environment.DBC
Title: RE: [Hibernate] Using Hibernate from a ServletFilter
Hi Matt,
I know Christian just posted a mail that he uses a ThreadLocal variable to handle this, and that is one solution.
I use do it similar to how you describe it below, in that my web layer and my unit tests take care of ope
It's more a workaround than a solution, It's unpracticable to manage
thousands of SessionFactorys, what is really needed is a way to
programatically set the default schema for a given session at runtime. Once
i tackle my new project i ll look into this.
Regards
Chris
- Original Message -
On 09 Jan (07:13), Matt Raible wrote:
> And I'd like to use JUnit/Cactus to test them all. If I use your filter, I'm
> guessing I'll have to pass the Session object all the way down to the
> persistence layer? What is the recommended way to do this.
Read my last mails on the developer list for
Jon - this looks great. I'm assuming this works great when calling DAOs or
Hibernate persistence classes directly from the web tier. If I have the
following layers
web (action classes)
service (business logic)
persistence (daos)
And I'd like to use JUnit/Cactus to test them all. If I use your
Title: RE: [Hibernate] Queries with composite id's
Yep, that fixed it... Thanks!
(Sorry for getting you worried that something was broken. :-)
-Original Message-
From: One Ovthafew [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 1:18 PM
To: [EMAIL PROTECTED]
Subject:
Ahah - I think I know now what has changed :)
Do the XXXHistoryImpl classes inherit XXXImpl?
If so, then the solution is simply to add polymorphism="explicit" to
your mapping documents.
-
Never lose a fax again, receive faxes t
Title: RE: [Hibernate] Queries with composite id's
Ok this is really weird. I'm not so sure that this is a problem with composite-id's now.
Here is the query that it fails on:
SELECT Posting FROM Posting IN CLASS com.xxx.tex.dao.posting.PostingImpl ,
Attr1 IN CLASS com.xxx.tex.dao.postin
You could use multiple SessionFactorys, built with different Properties
object
- Original Message -
From: Christian Meunier <[EMAIL PROTECTED]>
Date: Sunday, January 5, 2003 2:40 am
Subject: Re: [Hibernate] Improving schemas support
> I am not sure it's that simple ;)
>
> Using a set
Thanks, Jon - I would also love it if you could write a little bit of
metadata about this stuff in the Wiki design patterns page ... (theres a
big TODO there for this)
-
Never lose a fax again, receive faxes to your personal e
>> I recently upgraded one of our applications from Hibernate 1.0 (or
one of the release around there) to Hibernate 1.2. My queries that
depend on the properties of a composite id no longer work. <<
Yick!! I'm very surprised.I paid special attention to this in the
test suite, because I knew i
Title: Message
Hi,
I recently upgraded
one of our applications from Hibernate 1.0 (or one of the release around there)
to Hibernate 1.2. My queries that depend on the properties of a composite
id no longer work.
I know that used to
work because I was the one who added it originally, b
Hi there
I have one table of CDRs (MMS_CDRS) and another table (MMS_DESTINATIONS) which
contains the destinations in the CDRs.
The field CDRID in the table MMS_DESTINATIONS has a foreign key, the field CDRID in
the table MMS_CDRS.
I do a query e.g.:
from o in class com.hp.mms.bo.MMSCdrBO o.tim
I see, TreadLocal stuff becomes popular and I think it can be implemented in
SessionFactory.currentSession();
Session can be mapped to Thread in "standalone" mode and to JTA Transaction
in "managed" mode (Transaction is mapped to Thread in JTA too).
Factory implementation opens it once per transac
19 matches
Mail list logo