Re: [Hibernate] cglib reflect package

2003-09-25 Thread Gavin King
Yes, this is the plan! Aapo Laakkonen wrote: 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:ThinkGe

Re: [Hibernate] java.lang.AbstractMethodError

2003-09-25 Thread Christian Bauer
On 25 Sep (19:55), Prasad Iyer wrote: > I get this error can anyone help me in solving this Please use the forum instead of the developer mailinglist for help requests. -- Christian Bauer [EMAIL PROTECTED] --- This sf.net email is sponsored

[Hibernate] java.lang.AbstractMethodError

2003-09-25 Thread Prasad Iyer
I get this error can anyone help me in solving this java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.supportsResultSetType(I)Z at net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:163) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configur

R: [Hibernate] problem in using JTA datasources

2003-09-25 Thread Travelli Stefano
As far as I know Hibernate does call session.flush() before committing. But, in order to allow this behavior, you have to make sure that it's aware of the underlying transaction handling. In hibernate.properties you find a section called "Transaction API" where you should set: 1- the transacti

[Hibernate] problem with Date when used in query

2003-09-25 Thread Prasad Iyer
Yeah you are right I got the latest and it did worked. Is there a problem with the Date I was trying between clause in where condition for date and to supply the two dates I was using Calendar.getTime(); like query.setParameter("dt", Calendar.getTime()); It gave me class cast exception. Thanks for

[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-25 Thread Konstantin Priblouda
--- Aapo Laakkonen <[EMAIL PROTECTED]> wrote: > One more question: > > > So you have private constructors in them? > > If yes, then how do you instantiate your objects? > Like this? > > Constructor ctor = > UserImpl.class.getDeclaredConstructor(new Class[0]); > ctor.setAccessible(true); > UserI

Re: [Hibernate] Error when sql query is been created

2003-09-25 Thread Gavin King
Looks very much like you are using an outdated Hibernate version. Which version does the log report? Prasad Iyer wrote: Hi, I have this two joined-subclass in a mapping file. This two joined-subclass has one-to-many relationship between them and is giving me a problem, when I am trying to create

Re: [Hibernate] problem in using JTA datasources

2003-09-25 Thread dosapati
Stefano, thanks for your response. Yes, it is working now. But I have a major doubt on session.flush(). It was working without session.flush() when I begin the transaction with session.beginTransaction() and not setting external connection. When JTA UserTransaction is handled by application and

[Hibernate] problem in using JTA datasources

2003-09-25 Thread dosapati
I am facing problems in using UserTransaction & JTA datasource with Hibernate.   I am using JOTM as TransactionManager and XAPool ass JTA datasource. To use them, first I resitered them from Tomcat's server.xml as Resources.My java code is like this:     try {  Context ctx = new Initial