inherit problem

2004-05-03 Thread Carles Duque
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

RE: inherit problem

2004-05-03 Thread Carles Duque
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

Problem with boolean

2004-05-03 Thread Carles Duque
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.

Select MAX

2004-04-14 Thread Carles Duque
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

RE: Select MAX

2004-04-14 Thread 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

Logger Error

2004-03-18 Thread Carles Duque
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();

Logger error

2004-03-17 Thread Carles Duque
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();