I have found that self-referential entities work just fine. Just make
sure that you lazily load everything so that hibernate doesn't have to
load your entire object graph into memory with every call. If you have
a single parent object with a getter/setter, you'll want to use proxies,
but if your
Does your JDBC driver have native code in it? (like the Oracle oci
driver)
Jeff
> -Original Message-
> From: Mao, Dean (IHG) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 1:56 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Hibernate] Weird session.flush() lockup?
>
> I'm not s
> From: Bill Burke [mailto:[EMAIL PROTECTED]
>
> Just wondering what you all need/want for better Hibernate-JBoss
> integration. What is lacking. What needs improving. What sucks,
etc...
I've mentioned this before and Gavin sounded enthused, but just in case
I figure I should mention it again:
> From: Christian Bauer [mailto:[EMAIL PROTECTED]
>
> Do you have any questions about the Hibernate/JBoss merger?
With better JBoss integration, any chance we will be able to get a
Hibernate session cache to transparently follow the lifetime of an EJB
transaction (across EJB method calls), just l
Lets say we load an object of type EntityA, which has a proxy. The
session cache now contains a proxy for that object.
Now lets say we load a collection of EntityA objects, one of which is
the instance we loaded earlier.
What I find in that collection is a set of initialized EntityA objects,
_ex
> From: Michael Gloegl [mailto:[EMAIL PROTECTED]
>
> when trying to connect to the CVS I constantly get "EOF from Server"
and
> "Connection Reset by Peer" errors. Is anyone else having such problems
> in the moment?
Yes. I was getting them yesterday too.
(using anonymous cvs)
Jeff Schnitzer
[E
I've had great success with the new Firebird JCA driver so far, but I
haven't put it under serious load yet. I believe at this point the old
Interbase type-3 driver is considered "legacy". I strongly recommend
upgrading.
Jeff Schnitzer
[EMAIL PROTECTED]
> -Original Message-
> From: Gavi
> From: Gavin King [mailto:[EMAIL PROTECTED]
>
> > But if the
> > entity doesn't override equals, everything gets wacky because
equals()
> > is not reflexive:
> >
> > proxyA.equals(realA) != realA.equals(proxyA)
>
> In the current implementation, it can only break if we have the same
> object tw
Restating this more intelligibly.
Currently: Proxy hashCode() always is the hashCode() of the identifier.
Proxy equals() defaults to a comparison of identity unless the entity
implements equals() itself, in which case proxies are always
materialized for equals().
This keeps things working (alb
Les, you come from a heavy C/C++/make background eh? Env variables are
pretty common in make-land but almost unheard of in java-land.
To restate what Gavin just said as a hard requirement:
Anyone with Java and Ant installed on their system
must be able to check out the CVS tree and build
Do you have a proxy defined for the parent object?
Jeff Schnitzer
[EMAIL PROTECTED]
> -Original Message-
> From: Graeme Knight [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 25, 2003 11:42 AM
> To: [EMAIL PROTECTED]
> Subject: [Hibernate] Lazy Loading, upwards?
>
> Hello.
>
> I have c
> From: Graeme Knight [mailto:[EMAIL PROTECTED]
>
> Nope. I've not looked into using proxies yet (will do). I'm just using
the
> persistent objects themselves in a very short lived Session.
If entity A has member field of entity B, Hibernate has to populate it
with _something_... and if you want
> From: Juozas Baliuka [mailto:[EMAIL PROTECTED]
>
> > I don't close the session at all in any of my business logic
methods. In
> > deployment, a servlet filter _always_ closes the session at the end
of
> the
>
> It looks like not the good way for performance. As I understand
> "doFilter()" retu
You're SOL here. Check the behavior of java.util.HashSet; if you change
the value of hashCode() then you're in trouble. Read the docs for
Object.equals() and Object.hashCode(): Equal objects must have equal
hash codes.
Jeff Schnitzer
[EMAIL PROTECTED]
> -Original Message-
> From: jies
Thanks, you guys are great :-)
Jeff
---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
hibernate-devel mailing li
ssage-
> From: Juozas Baliuka [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 30, 2003 10:34 PM
> To: Schnitzer, Jeff; [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] Trouble with proxy implementations
>
>
> This public method implemented for *all*
nsistently exposed.
???
Jeff
> -Original Message-
> From: Schnitzer, Jeff
> Sent: Thursday, January 30, 2003 5:23 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Hibernate] Trouble with proxy implementations
>
> It's possible that there i
ECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 30, 2003 4:45 PM
> To: Schnitzer, Jeff
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Hibernate] Trouble with proxy implementations
>
>
> Wierd those methods are defined on the _handler_ class,
> not the proxy interface it
I'm having a small problem with the generated proxy implementations in
one of my webapps. My data objects are of course java beans, and these
java beans are passed up into the presentation tier.
Among other things, my presentation tier uses reflection to examine the
data (model) components and ge
> From: Raible, Matt [mailto:[EMAIL PROTECTED]
>
> BTW - your filter complains about setting a static variable
> from a non-static context: this.factory =
> (SessionFactory)ctx.lookup(factoryJndiName);
Right - that's deliberate. You don't want to create a new
InitialContext and perform a JNDI lo
I was wondering, how usable is the Hibernate2 codebase right now?
Obviously I'm not looking to rush it into production, but I have a
project that would be a suitable guinea pig if Hib2 compiles and
(mostly) works...
Thanks,
Jeff
---
This SF.NET
y, January 15, 2003 10:29 PM
> To: Schnitzer, Jeff; [EMAIL PROTECTED]
> Subject: RE: [Hibernate] How smart is a proxy?
>
> Nah, not that smart ;)
>
> I must admit that I never considered the possibility of such
> a feature. Not sure if its feasible or not. Would certai
Lets say I have a persistent object that implements an interface like
this:
class Foo
{
public Long getId();
public List getBars();
public void setBars(List value);
}
Bar is another persistent object. Now lets say I execute this code:
Foo f = sess.load(Foo.class, someId
I had similar odd problems with lists when my indexes were wrong. Check
to be sure they are continuous, unique, and start at 0. Hibernate will
maintain them properly, but they're easy to mangle if you're doing
updates by hand.
Jeff Schnitzer
[EMAIL PROTECTED]
> -Original Message-
> From
Why not HibernateException extends SQLException?
Jeff
> -Original Message-
> From: One Ovthafew [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 03, 2003 8:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] Suggestion: Encapsulate SQLException in
> HibernateException
>
> I am happ
25 matches
Mail list logo