RE: [Hibernate] Design question: am I asking for trouble?

2003-11-24 Thread Schnitzer, Jeff
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

RE: [Hibernate] Weird session.flush() lockup?

2003-10-29 Thread Schnitzer, Jeff
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

RE: [Hibernate] What's needed for JBoss integration?

2003-10-07 Thread Schnitzer, Jeff
> 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:

RE: [Hibernate] Hibernate + JBoss Partnership

2003-09-17 Thread Schnitzer, Jeff
> 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

[Hibernate] Proxies in collections

2003-09-15 Thread Schnitzer, Jeff
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

RE: [Hibernate] CVS Problems

2003-09-10 Thread Schnitzer, Jeff
> 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

RE: [Hibernate] Hibernate/Interbase integration level

2003-09-05 Thread Schnitzer, Jeff
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

RE: [Hibernate] Proxy equals() and hashCode()

2003-08-27 Thread Schnitzer, Jeff
> 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

[Hibernate] Proxy equals() and hashCode()

2003-08-27 Thread Schnitzer, Jeff
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

RE: [Hibernate] build structure

2003-08-27 Thread Schnitzer, Jeff
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

RE: [Hibernate] Lazy Loading, upwards?

2003-08-26 Thread Schnitzer, Jeff
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

RE: [Hibernate] Lazy Loading, upwards?

2003-08-25 Thread Schnitzer, Jeff
> 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

RE: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-06 Thread Schnitzer, Jeff
> 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

RE: [Hibernate] wrong behavior in the net.sf.hibernate.collection.Set.remove()

2003-08-01 Thread Schnitzer, Jeff
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

RE: [Hibernate] Trouble with proxy implementations

2003-02-02 Thread Schnitzer, Jeff
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

RE: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Schnitzer, Jeff
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*

RE: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Schnitzer, Jeff
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

RE: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Schnitzer, Jeff
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

[Hibernate] Trouble with proxy implementations

2003-01-31 Thread Schnitzer, Jeff
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

RE: [Hibernate] Obtaining session in a filter

2003-01-29 Thread Schnitzer, Jeff
> 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

[Hibernate] State of the Hibernate2 codebase?

2003-01-23 Thread Schnitzer, Jeff
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

RE: [Hibernate] How smart is a proxy?

2003-01-16 Thread Schnitzer, Jeff
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

[Hibernate] How smart is a proxy?

2003-01-16 Thread Schnitzer, Jeff
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

RE: [Hibernate] Query only brings back first record

2003-01-14 Thread Schnitzer, Jeff
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

RE: [Hibernate] Suggestion: Encapsulate SQLException in HibernateException

2003-01-03 Thread Schnitzer, Jeff
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