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
> 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
> 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
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
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
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
> 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
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
). I attached fixed BasicRenderer.java
(net.sf.hibernate.tool.hbm2java.BasicRenderer) to this mail.
Regards
Aapo Laakkonen
BasicRenderer.java
Description: Binary data
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
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
_
> 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
> 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
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_
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
> 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
> 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?
> 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
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
;
}
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
> 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
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
22 matches
Mail list logo