[Hibernate] cglib reflect package

2003-09-25 Thread Aapo Laakkonen
In cglib cvs there exists new reflect package. Should Hibernate take advantage of these? E.g. Using FastConstructor for persisting object construction. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.co

RE: [Hibernate] Interface / Implementation separation and XDoclet

2003-09-23 Thread Aapo Laakkonen
> I'm crossposting this to xdoclet-devel... Ok, but wait! This is not so easy to solve as I first thought. I attached examples: - User.java (User Interface) - UserImpl.java (User implementation that Hibernate should use) What I'm after is that I should not have to know UserImpl in anywhere in my

RE: [Hibernate] Interface / Implementation separation and XDoclet

2003-09-23 Thread Aapo Laakkonen
> Well, if you state your class to be mapped > explicitely... Yes, that's true. The only place where I can put my Xdoclet tags is concrete implementation, because @hibernate.class tag does not have attribute where I could tell the implementation so it generates mapping correctly. Maybe this can b

RE: [Hibernate] Interface / Implementation separation and XDoclet

2003-09-23 Thread Aapo Laakkonen
rfaces that return interfaces, whose components are interfaces, etc.). At least I didn't get it to work. Hibernate configures itself, but buildSessionFactory returns null session factory. Aapo Laakkonen wrote: >Where should I put Xdoclet tags, in interface or concrete >implementation

[Hibernate] hsqldb and IDENTITY columns

2003-09-23 Thread Aapo Laakkonen
SchemaExport and hsqldb. hsqldb does not allow BIGINT as a IDENTITY column (INTEGER is ok), so schema export will fail. Also in hsqldb there should be "if exists" statement after drop clauses. --- This sf.net email is sponsored by:ThinkGeek We

[Hibernate] Interface / Implementation separation and XDoclet

2003-09-22 Thread Aapo Laakkonen
Where should I put Xdoclet tags, in interface or concrete implementation class? Here is example (user interface): package com.fchaps.model; /** * The User * * @hibernate.classtable="usr" * mutable="true" * proxy="com.fchaps.model.User" */ public

RE: [Hibernate] CodeGenerator Tool

2003-02-13 Thread Aapo Laakkonen
> The CodeGenerator tool generates private setters/getters. > Is there a way to force it to generate public setters/ > getters? Grap the latest cvs version or modify BasicRenderer. --- This SF.NET email is sponsored by: FREE SSL Guide from Th

[Hibernate] How to do this (assiciation)?

2003-02-12 Thread Aapo Laakkonen
ge_id and address.type. Kind Regards Aapo Laakkonen --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ hiber

RE: RE: [Hibernate] CodeGenerator in Hibernate2

2003-01-30 Thread Aapo Laakkonen
). I attached fixed BasicRenderer.java (net.sf.hibernate.tool.hbm2java.BasicRenderer) to this mail. Regards Aapo Laakkonen BasicRenderer.java Description: Binary data

RE: [Hibernate] CodeGenerator in Hibernate2

2003-01-30 Thread Aapo Laakkonen
Ok, I see that the BasicRenderer seems to want some parameter and it defaults to private, which is insane, I think (should default to public). --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something

[Hibernate] CodeGenerator in Hibernate2

2003-01-30 Thread Aapo Laakkonen
Why does CodeGenerator in Hibernate2 generate "private" getters and setters? --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _

RE: [Hibernate] Obtaining session in a filter

2003-01-30 Thread Aapo Laakkonen
> I'm wondering if there's any problem with the > following modifications to Jeff's Filter. Yes there is. More new InitialContext() lookups. This was one thing that Jeff tried to avoid. But yes your approach should work fine, but it causes a little more overhead (Or have you done some modification

[Hibernate] RE: Lazy Collections (to maverick users)

2002-12-04 Thread Aapo Laakkonen
> What guarantees does Maverick make about when / wether discard() will be > called? Is it *guaranteed* to be called in the case of an exception, etc? I checked this today, and found out that it gives tou no guarantees, until I posted a patch. > -Original Message- > From: Aa

[Hibernate] Transaction Commit & Session Close

2002-12-04 Thread Aapo Laakkonen
Here is my settings: java:comp/env/jdbc/xa/postgresql/somedb cirrus.hibernate.sql.PostgreSQLDialect ... mapping files ... hibernate.use_outer_join=true hibernate.show_sql=false hibernate.jdbc.batch_size=10 hibernate.statement_cache.size=20 hibernate.transaction.factory_

[Hibernate] Global Components

2002-12-04 Thread Aapo Laakkonen
I have need for global components. Here is example of one: With current implementation I have to copy this definition to all of my mapping files that need to provide metadata. Is there workaround to this? Or is it just me who ever likes to see this kind of f

RE: [Hibernate] Lazy Collections

2002-12-04 Thread Aapo Laakkonen
> 04:18:56,649 WARN > [JTATransactionFactory] No TransactionManagerLookup configured > (use of JCS read-write cache is not recommended) Ok there is error in documentation (it's not hibernate.transaction.manager_class). This works: hibernate.transaction.manager_lookup_class

FW: [Hibernate] Lazy Collections

2002-12-04 Thread Aapo Laakkonen
> Where are connections coming from? A Hibernate ConnectionProvider? Or > an application supplied connection? They come from JNDI and I use Hibernate XML configuration and initialize Hibernate with configure();. > What guarantees does Maverick make about when / > wether discard() will be called?

FW: [Hibernate] Lazy Collections

2002-12-04 Thread Aapo Laakkonen
> I had a *really* close look into the possibility > that Hibernate issues the unclosed session WARNing > when the session has in fact been closed and I've > concluded that it doesn't. I am quite certain that > the problem is that the user is not closing the > sessions. (In a couple of previous com

RE: [Hibernate] Lazy Collections

2002-12-03 Thread Aapo Laakkonen
fter serving client, then that code never gets executed -> you are going to run out of db connections that you have in some pool (i.e. jndi). I think that this settings should be put in some FAQ. Kind Regards Aapo Laakkonen --- This SF.net e

[Hibernate] Patch to CodeGenerator (BasicRenderer.java)

2002-11-08 Thread Aapo Laakkonen
; } Just a quick patch, and as someone noted the CodeGenerator should be rewritten so that it takes advantage of common mapping file parsing routine to keep utility in sync with Hibernate. Note: This patch does not include one-to-one mapping support, just the boolean getter support. Regards Aapo

RE: [Hibernate] CodeGenerator

2002-11-08 Thread Aapo Laakkonen
> Yeah that would make more sense. Do you wanna produce a patch? (Do we > need to worry about backward compatibility on this?) Maybe I could look this after I get some sleep, :-). Quick search to source code gave me an idea. The feature I'm after can easily be patched at the bottom of Basic Rende

[Hibernate] CodeGenerator

2002-11-08 Thread Aapo Laakkonen
blic void setSomething(boolean something) { this.something = something; } Currently it generates getter eg.: public boolean getSomething() { return this.something; } Kind Regards Aapo Laakkonen --- This sf.net email is