How do you like JAWS?
We are looking at the possibility of using it ourselves. Does it only create
Entity Beans? Does it let you use something other than Entity Beans to
represent your data??
I asked this on the JAWS list, but no one asked.
On Thursday 12 April 2001 03:38, you wrote:
> Hi folks
>
> We have problems with the standardjaws.xml mapping with the MS
> SQLServer2000.
> In some cases (java-types (Long, Float, Double)) we get a "load failed"
> error when JBoss tries to fill the Entity Beans with DB data.
>
> We think this comes from "a wrong" mapping in standardjaws.xml.
> So, we modified the standardjaws.xml file, and it works. The Beans are
> filled correctly.
>
> Has anyone encoutered similiar mapping problems ? BTW it doesn't work with
> MS SQLServer7 neither (BIGINT is not supported and there seems to be no
> working mapping available).
>
> Is it possible to change the standardmapping somehow or did anyone get the
> default mapping to work correctly respectively (i.e. without load failed
> exceptions)?
>
> Wouldn't it be a good idea to change the default mapping within the JBoss
> distribution so that it would work out of the box ? Just my humble opinion
> ;-)
>
> Here our modifications (these are our complete type-mapping statements):
>
>
> <type-mapping>
> <name>MS SQLSERVER</name>
> <mapping>
> <java-type>java.lang.Integer</java-type>
> <jdbc-type>INTEGER</jdbc-type>
> <sql-type>INTEGER</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.Character</java-type>
> <jdbc-type>CHAR</jdbc-type>
> <sql-type>CHAR</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.Short</java-type>
> <jdbc-type>SMALLINT</jdbc-type>
> <sql-type>SMALLINT</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.Long</java-type>
> <jdbc-type>BIGINT</jdbc-type>
> <sql-type>BIGINT</sql-type>
> </mapping>
> <mapping>
> <java-type>java.math.BigDecimal</java-type>
> <jdbc-type>VARCHAR</jdbc-type>
> <sql-type>VARCHAR(256)</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.String</java-type>
> <jdbc-type>VARCHAR</jdbc-type>
> <sql-type>VARCHAR(256)</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.Object</java-type>
> <jdbc-type>JAVA_OBJECT</jdbc-type>
> <sql-type>IMAGE</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.Byte</java-type>
> <jdbc-type>TINYINT</jdbc-type>
> <sql-type>TINYINT</sql-type>
> </mapping>
> <mapping>
> <java-type>java.sql.Timestamp</java-type>
> <jdbc-type>TIMESTAMP</jdbc-type>
> <sql-type>TIMESTAMP</sql-type>
> </mapping>
> <mapping>
> <java-type>java.sql.Date</java-type>
> <jdbc-type>DATE</jdbc-type>
> <sql-type>DATETIME</sql-type>
> </mapping>
> <mapping>
> <java-type>java.sql.Time</java-type>
> <jdbc-type>TIME</jdbc-type>
> <sql-type>DATETIME</sql-type>
> </mapping>
> <mapping>
> <java-type>java.util.Date</java-type>
> <jdbc-type>DATE</jdbc-type>
> <sql-type>DATETIME</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.Boolean</java-type>
> <jdbc-type>BIT</jdbc-type>
> <sql-type>BIT</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.Float</java-type>
> <jdbc-type>REAL</jdbc-type>
> <sql-type>REAL</sql-type>
> </mapping>
> <mapping>
> <java-type>java.lang.Double</java-type>
> <jdbc-type>DOUBLE</jdbc-type>
> <sql-type>FLOAT</sql-type>
> </mapping>
> </type-mapping>
>
>
> FFPX Kristian :-)
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development