Subject | Re: How2 save javaobject in Firebird ? |
---|---|
Author | mozheyko_d |
Post date | 2004-12-17T15:03:17Z |
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
<rrokytskyy@a...> wrote:
> > I try to use Firebird as default datastore for JBOSS(tm) AppServer,to your
> > and this server call setObject() method for storing internal
> > objects. Probably it is necessary to use default jboss database -
> > HSQLDB :(
>
> standardjbosscml-jdbc.xml contains an error in datatype mapping for
> Firebird:
>
> <mapping>
> <java-type>java.lang.Object</java-type>
> <jdbc-type>JAVA_OBJECT</jdbc-type>
> <sql-type>BLOB</sql-type>
> </mapping>
>
> However, instead it should be:
>
> <mapping>
> <java-type>java.lang.Object</java-type>
> <jdbc-type>VARBINARY</jdbc-type>
> <sql-type>BLOB</sql-type>
> </mapping>
>
> or
>
> <mapping>
> <java-type>java.lang.Object</java-type>
> <jdbc-type>BLOB</jdbc-type>
> <sql-type>BLOB</sql-type>
> </mapping>
>
>
> Either fix your standardjbosscmp-jdbc.xml or add appropriate mapping
> deployment descriptor.I tried this mapping but receive same errors :(
>
> Roman