Hi,

I have been trying to setup OR-Mapping, to represent a many-many
relationship...I have been following the help from
http://www.orionsupport.com/ejbormapping.html

ANyway, here is what i have..

Country Bean, with primkey of String type.
Supplier Bean with primkey of String type.

In Supplier, I have a HashSet countries, which is a collection of
Country.

i had this in the Bean class of supplier:
----------------------------------------------------
public HashSet countries;

public static final Class countries_type=vc.ejb.Country.class;

public HashSet getCountries() {
        return countries;
}
public void setCountries(HashSet c) {
        this.countries=c;
}
----------------------------------------------------

I also have added a cmp-field in ejb-jar.xml for 'countries'.
I am using PostgreSQL 7.0.2.

Problem is, when I call create(String) I get the exception:
javax.ejb.CreateException: Error creating EntityBean: InputStream as
parameter not supported

What is wrong here?

According to the doc on the web, it said a linking table will be created
for me, however I cannot find such table :((, but on the Supplier's
table, there is a extra attribute 'countries' with datatype
'oid'...which from my database schema is the java.io.Serializable type.

I have attached my orion-ejb-jar.xml here...if that's any help.

Thanks heaps in advance.

James.

Reply via email to