Bugs item #667226, was opened at 2003-01-14 03: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: Fixed
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"
----------------------------------------------------------------------
>Comment By: Gavin King (oneovthafew)
Date: 2003-01-15 00:29
Message:
Logged In: YES
user_id=384580
This appears to have been fixed as a side-effect of another
change. Please try the current CVS.....
----------------------------------------------------------------------
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: Take your first step towards giving
your online business a competitive advantage. Test-drive a Thawte SSL
certificate - our easy online guide will show you how. Click here to get
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel