Hi
 
I am using OJB rc3 and I seem to have a problem with a 1:n associations.
 
I have two classes; "Event" and "AdditionalEventInfo" with Event being
the parent of the 1:n. I have created a collection property on Event
called "additionalEventInfo" but when I try to query on the JDBC driver
(MySql) complains that it can't find column "additionalEventInfo"
 
Here is the top of the generated Stack Trace
 
[org.apache.ojb.broker.accesslayer.JdbcAccessImpl] ERROR: SQLException
during the execution of the query (for a com.clic.data.Event): Column
not found: Unknown column 'eventAdditionalInfo' in 'where clause'
Column not found: Unknown column 'eventAdditionalInfo' in 'where clause'
java.sql.SQLException: Column not found: Unknown column
'eventAdditionalInfo' in 'where clause'
 
Here is the collection descriptor...
<collection-descriptor 
name="eventAdditionalInfo" 
element-class-ref="com.clic.data.EventAdditionalInfo" 
auto-delete="true" 
auto-update="true" 
auto-retrieve="true" 
proxy="true">
<inverse-foreignkey field-ref="eventId"/>
      </collection-descriptor>
 
Any help would be appreciated thanks

Reply via email to