I've the two situation in my project. I have a documents table table has a fixed structure to all types of documents, and I have different tables for different objects, in another (a payment structure).
All that works. I think you must specify that your interfaces extends others. The java.io.Serializable ins't necessary to work with OJB (but you may need it to work with another tech). But see. If you make AbstractPersistentIF extends java.io.Seralizable, all your interfaces (since they will extends AbstractPersistentIF) will be subclasses of java.io.Seralizable. AFAIK, your interfaces must extend the super-interfaces. Oh, in the .xml you must specify the class name, not interface name... I expect to help... Edson Richter ----- Original Message ----- From: Joerg Lensing To: OJB Users List Sent: Friday, September 12, 2003 5:22 AM Subject: Re: dynamci Proxy: ClassCastException with Interfaces hi carlos, did I say, that PersonPO and OrganisationPO are mapped to the same table? The do! joerg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 1/9/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]