Joins

2004-01-29 Thread Ankur Gupta
I am trying to run a direct SQL query using OJB and not sure how to make
it work. The query I am trying to run is a join of 2 classes. I haven't
specified any join mappings in the repository file. Want to do this
manually. Can you please provide me an example on how to do this
specific thing?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Mapping inheritance

2004-01-26 Thread Ankur Gupta
I am dynamically registering the mappings for a class hierarchy in ojb
and have been getting the following exception:

java.lang.NullPointerException
at
org.apache.ojb.broker.metadata.fieldaccess.AnonymousPersistentFieldForIn
heritance.copyObjectToObject(Unknown Source)
at
org.apache.ojb.broker.metadata.fieldaccess.AnonymousPersistentFieldForIn
heritance.get(Unknown Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.storeReferences(Unknown
Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(Unknown
Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown
Source)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown
Source)
at com.cci.prototype.interpreter.Tester.main(Tester.java:49)

Can someone please let me know if I need to set something in the class
descriptor? FYI, I am using "super" reference for inheritance.


Regards,

Ankur Gupta


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with "super"

2004-01-22 Thread Ankur Gupta
I keep getting the following error:

"Can't find member super in com.cci.model.pharma.impl.AOMObjectImpl"

The repository XML looks like this:

  
  
  
  
  

  
  

  
  


"
  >

  
  

  
  
  
  
  

  
  

  
  
  
  
  
  
  

  
  

  
  

  
  
  
  

  
  
  
  
  
  
  
  

  
  
  
  
  
  
  

  
  
  
  
  
  
  
  

Can someone point out what could be wrong?


Thanks,

Ankur Gupta


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]