Hello!!
I have a problem witth retrieve two classes in a two tables.
Classes: A and B. B estends A.
When I have one class (example: A) I see if Id (getId()) is null. If its true, I do
select MAX and I assing to class (setId()). This work ok, always.
In the new case (A and B), when I retrieve
a misstake in your class-definitions and or repository
declarations.
Stefan
Carles Duque wrote:
Hello!!
I have a problem witth retrieve two classes in a two tables.
Classes: A and B. B estends A.
When I have one class (example: A) I see if Id (getId()) is null. If its true, I do
Hi!!!
I try to mapping a boolean field in oracle.
I have put in field-descriptor: jdbc-type=BIT
the field in DB is NUMBER(1)
the attributte in class is boolean.
I use a fieldconversion:
conversion=org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion
in the field-descriptor.
broker.getReportQueryIteratorByQuery(query);
***
But I don't know how return this iter2.next(). An Object of nothing... =
because It generate ClassCastException with Estudiant, Long, Integer and =
Double.
Anyone Can help me? Thanks!!
Carles Duque
[]
Object[] objs = iter2.next();
Integer max = objs[0];
Hope this helps,
Wally
-Original Message-
From: Carles Duque [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 7:54 AM
To: [EMAIL PROTECTED
Hello, I'm using tomcat and ojb. I test an example of cocoon with ojb:
PersistenceManager manager = factory.getPersistenceManager();
/* 2. Get current transaction */
Transaction tx = manager.currentTransaction();
/* 3. Start a Transaction */
tx.begin();
Hello, I'm using tomcat and ojb. I test an example of cocoon with ojb:
PersistenceManager manager = factory.getPersistenceManager();
/* 2. Get current transaction */
Transaction tx = manager.currentTransaction();
/* 3. Start a Transaction */
tx.begin();