Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OJB Path Expression Relationship Problem

 
Raistlin Zischer
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need help figuring this problem out. I have this code:

and this is the sql that is generated:

But I get this error: org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.PersistenceBrokerSQLException: java.sql.SQLException: General error, message from server: "Unknown table 'project' in where clause". I have a getProject method in my ContainerType class so I am not sure as to why it is having a problem with the code I am using.

Plase Help, Thanks

Ryan
 
Raistlin Zischer
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I've actually been able to fix this problem. I had to put the getOjbect method in the Class I was trying to get at, and I also had to put a reference-descriptor in the repository*.xml file.

But now I have another problem where it says it can't find the member object in the class I have it pointing to. Not sure if I need to add more to the repository file or if I need to do something totally different.

Any help will be appropiated
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic