M Navasca

Greenhorn
+ Follow
since Oct 25, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by M Navasca

Hey that worked! I can't believe it was something so trivial.

thanks
Using Hibernate 3

I have a problem validating a mapping file that contains and elements.

Java classes:






DB Tables (Postgresql 8.2):



* tbl_agents and tbl_agenthistories are 1-to-1
* tbl_agents and tbl_retailproperties are 1-to-n
* I have no control over the db schema (ie. I cannot change it)


Agent.hbm.xml:



RetailProperty.hbm.xml:



RetailProperty.hbm.xml validates. But when I try to validate Agent.hbm.xml I get this:



Which usually means to me that something is wrong with the mapping file. Is there anything in my mapping files that I'm missing?

Note that when I comment out either the <set> or <join> element in Agent.hbm.xml it validates.