Bugs item #667226, was opened at 2003-01-13 11:10
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428708&aid=667226&group_id=40712
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff (jwboring)
Assigned to: Nobody/Anonymous (nobody)
Summary: schema="hibernate" in map file causes StringIndexOutOfBounds
Initial Comment:
A mapping file with schema="hibernate" will produce (at
least for me) an
java.lang.StringIndexOutOfBoundsException.
Mapping file example:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-
mapping.dtd">
<hibernate-mapping>
<class name="com.boring.sandbox.Cat" table="cat"
schema="hibernate" >
<!-- comment -->
<id column="NAME" name="name" type="string">
<generator class="assigned"/>
</id>
<property name="age" column="age" type="int" />
<!-- <property name="xage" column="age"
type="int" /> shows how to fake hbn into using other
get/set's -->
<property name="haircolor" column="haircolor"
type="string" />
<property name="eyecolor" column="eyecolor"
type="string" />
<property name="health" column="health"
type="string" />
</class>
</hibernate-mapping>
Trace:
java.lang.StringIndexOutOfBoundsException: String
index out of range: 5
at java.lang.String.substring(String.java:1501)
at
cirrus.hibernate.loader.OuterJoinLoader.alias
(OuterJoinLoader.java:278)
at cirrus.hibernate.loader.EntityLoader.<init>
(EntityLoader.java:32)
at
cirrus.hibernate.persister.EntityPersister.postInstantiate
(EntityPersister.java:138)
at
cirrus.hibernate.impl.SessionFactoryImpl.<init>
(SessionFactoryImpl.java:215)
at
cirrus.hibernate.impl.DatastoreImpl.buildSessionFactory
(DatastoreImpl.java:374)
at
cirrus.hibernate.impl.DatastoreImpl.buildSessionFactory
(DatastoreImpl.java:365)
at com.boring.sandbox.catDemo.main
(catDemo.java:31)
Exception in thread "main"
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428708&aid=667226&group_id=40712
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel