You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(32) |
Jun
(175) |
Jul
(209) |
Aug
(302) |
Sep
(287) |
Oct
(339) |
Nov
(314) |
Dec
(329) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(479) |
Feb
(389) |
Mar
(599) |
Apr
(307) |
May
(390) |
Jun
(300) |
Jul
(410) |
Aug
(458) |
Sep
(299) |
Oct
(315) |
Nov
(363) |
Dec
(529) |
2005 |
Jan
(568) |
Feb
(434) |
Mar
(1004) |
Apr
(823) |
May
(767) |
Jun
(763) |
Jul
(854) |
Aug
(862) |
Sep
(560) |
Oct
(853) |
Nov
(763) |
Dec
(731) |
2006 |
Jan
(776) |
Feb
(608) |
Mar
(657) |
Apr
(424) |
May
(559) |
Jun
(440) |
Jul
(448) |
Aug
(58) |
Sep
|
Oct
(17) |
Nov
(16) |
Dec
(8) |
2007 |
Jan
(1) |
Feb
(8) |
Mar
(2) |
Apr
(5) |
May
(3) |
Jun
(3) |
Jul
(3) |
Aug
(16) |
Sep
(10) |
Oct
(4) |
Nov
(4) |
Dec
(4) |
2008 |
Jan
(8) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: <leg...@at...> - 2003-10-21 08:57:29
|
The following issue has been updated: Updater: Gavin King (mailto:ga...@in...) Date: Tue, 21 Oct 2003 2:32 AM Comment: This is not a bug, it is intended. Changes: type changed from Bug --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-112&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-112 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-112 Summary: If connection not available, no exception thrown Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Assignee: Reporter: Chris Winters Created: Thu, 29 May 2003 10:49 AM Updated: Tue, 21 Oct 2003 2:32 AM Environment: Hibernate 2.0 rc5 Description: When building a SessionFactory with a 'Datasource' set I'd like to know if it fails to connect to the given datasource. Currently it just logs a message and keeps on going (lines 159-172 of SessionFactoryImpl). So once the SessionFactory is created I have no idea if this aspect failed or not. Having a status on the SessionFactory would be useful, probably even better would be a configuration setting (e.g., Environment.DIE_ON_FAILED_CONNECTION) that tells the constructor to throw an exception if the connection cannot be made. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 08:50:18
|
The following issue has been updated: Updater: Gavin King (mailto:ga...@in...) Date: Tue, 21 Oct 2003 2:33 AM Changes: summary changed from Wrong SQL statement with field "elementId" priority changed from Blocker --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-374&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-374 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-374 Summary: Duplicate column in SQL select clause Type: Bug Status: Assigned Priority: Critical Project: Hibernate2 Versions: 2.0.3 Assignee: Gavin King Reporter: Andrei Pavlenko Created: Wed, 1 Oct 2003 9:32 AM Updated: Tue, 21 Oct 2003 2:33 AM Environment: Sybase Description: I have "composite-id" with two fields. I want to create "many-to-one" reference for field "elementId" but generated by Hibernate SQL query is incorrect. When I change column name to "elementOwnerId" it is generated correctly. See attached files. Wrong SQL: select attribut0_.attributeId as attributeId, attribut0_.elementId as elementId, attribut0_.possibleAttributeValueId as possible3_, attribut0_.attributeValueFreeText as attribut4_, attribut0_.attributeId as attribut1_, attribut0_.elementId as elementId from AttributeValue attribut0_ where (attribut0_.elementId=? )and(attribut0_.attributeId=? ) Error message: Select expression results in more than one column having same name. Column name 'elementId' is specified more than once --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 08:47:12
|
Message: The following issue has been closed. Resolver: Gavin King Date: Tue, 21 Oct 2003 2:13 AM This seems like an obsolete bug report. No-one else has ever reported this, and I frankly don't believe it, after looking at the code. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-121 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-121 Summary: Schema export and MySQL AUTO_INCREMENT problem Type: Bug Status: Closed Priority: Major Resolution: REJECTED Project: Hibernate2 Components: toolset Versions: 2.0rc2 Assignee: Reporter: Richard Mixon Created: Thu, 5 Jun 2003 10:03 PM Updated: Tue, 21 Oct 2003 2:13 AM Environment: Windows XP, J2SDK 1.4.1, Ant 1.5.2, June 5th build of Hibernate Tools from CVS. Description: (Originally posted on forum) By: rnmixon ( Richard Mixon ) Schema export and MySQL AUTO_INCREMENT probl 2003-06-05 17:27 The schema export utility is omitting AUTO_INCREMENT from the actual id property, and erroneously including AUTO_INCREMENT on one part of a two part unique key. I am using "native" id generation. Both parts of the key are many-to-one mappings. I have another table that is mapped the same way and have no problems with it. Is this a bug in schema export? My mapping and the generated DDL are below for the good and bad examples. Thanks much in advance - Richard (sorry for the verbose listing) DDL - START (with wrong AUTO_INCREMENT spec) create table PoAggrMeasurement ( id BIGINT not null, version INTEGER not null, aggregation BIGINT NOT NULL AUTO_INCREMENT, classMeasurement BIGINT not null, status BIGINT, owner BIGINT, createdBy DATETIME not null, createdFromIP DATETIME not null, createdOn BIGINT not null, updatedBy BIGINT not null, updatedFromIP VARCHAR(15) not null, updatedOn VARCHAR(255) not null, primary key (aggregation, classMeasurement), unique (aggregation, classMeasurement) ); DDL - END DDL - START (with wrong AUTO_INCREMENT spec) create table PoEnrollment (correct AUTO_INCREMENT) id BIGINT NOT NULL AUTO_INCREMENT, version INTEGER not null, classOwner BIGINT not null, studentOwner BIGINT not null, status BIGINT, owner BIGINT, createdBy DATETIME not null, createdFromIP DATETIME not null, createdOn BIGINT not null, updatedBy BIGINT not null, updatedFromIP VARCHAR(15) not null, updatedOn VARCHAR(255) not null, primary key (id), unique (classOwner, studentOwner) ); DDL - END MAPPING - START (causes wrong AUTO_INCREMENT spec) <hibernate-mapping> <class name="com.ltoj.persistence.base.PoAggrMeasurement" table="PoAggrMeasurement" dynamic-update="false" > <id name="id" column="id" type="long" unsaved-value="null" > <generator class="native"> </generator> </id> <version name="version" type="int" column="version" /> <many-to-one name="aggregation" class="com.ltoj.persistence.base.PoAggregation" cascade="none" outer-join="auto" update="true" insert="true" > <column name="aggregation" unique-key="userkey" not-null="true" /> </many-to-one> <many-to-one name="classMeasurement" class="com.ltoj.persistence.base.PoClassMeasurement" cascade="none" outer-join="auto" update="true" insert="true" > <column name="classMeasurement" unique-key="userkey" not-null="true" /> </many-to-one> <many-to-one name="status" class="com.ltoj.persistence.base.PoStatus" cascade="none" outer-join="auto" update="true" insert="true" column="status" not-null="false" unique="false" /> <many-to-one name="owner" class="com.ltoj.persistence.base.PoAssociate" cascade="none" outer-join="auto" update="true" insert="true" column="owner" not-null="false" unique="false" /> <property name="auditInfo" type="com.ltoj.persistence.base.PoAuditInfoType" update="true" insert="true" > <column name="createdBy" length="8" not-null="true" /> <column name="createdFromIP" length="15" not-null="true" /> <column name="createdOn" not-null="true" /> <column name="updatedBy" length="8" not-null="true" /> <column name="updatedFromIP" length="15" not-null="true" /> <column name="updatedOn" not-null="true" /> </property> <!-- To add non XDoclet property mappings, create a file named hibernate-properties-PoAggrMeasurement.xml containing the additional properties and place it in your merge dir. --> </class> <query name="PoAggrMeasurement.all"><![CDATA[ from am in class com.ltoj.persistence.base.PoAggMeasurement ]]></query> </hibernate-mapping> MAPPING - END MAPPING - START (correct AUTO_INCREMENT spec) <hibernate-mapping> <class name="com.ltoj.persistence.base.PoEnrollment" table="PoEnrollment" dynamic-update="false" > <id name="id" column="id" type="long" unsaved-value="null" > <generator class="native"> </generator> </id> <version name="version" type="int" column="version" /> <many-to-one name="classOwner" class="com.ltoj.persistence.base.PoClass" cascade="none" outer-join="auto" update="true" insert="true" > <column name="classOwner" unique-key="userkey" not-null="true" /> </many-to-one> <many-to-one name="studentOwner" class="com.ltoj.persistence.base.PoStudent" cascade="none" outer-join="auto" update="true" insert="true" > <column name="studentOwner" unique-key="userkey" not-null="true" /> </many-to-one> <many-to-one name="status" class="com.ltoj.persistence.base.PoStatus" cascade="none" outer-join="auto" update="true" insert="true" column="status" not-null="false" unique="false" /> <many-to-one name="owner" class="com.ltoj.persistence.base.PoAssociate" cascade="none" outer-join="auto" update="true" insert="true" column="owner" not-null="false" unique="false" /> <property name="auditInfo" type="com.ltoj.persistence.base.PoAuditInfoType" update="true" insert="true" > <column name="createdBy" length="8" not-null="true" /> <column name="createdFromIP" length="15" not-null="true" /> <column name="createdOn" not-null="true" /> <column name="updatedBy" length="8" not-null="true" /> <column name="updatedFromIP" length="15" not-null="true" /> <column name="updatedOn" not-null="true" /> </property> <!-- To add non XDoclet property mappings, create a file named hibernate-properties-PoEnrollment.xml containing the additional properties and place it in your merge dir. --> </class> </hibernate-mapping> MAPPING - END --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 08:36:33
|
The following comment has been added to this issue: Author: Gavin King Created: Tue, 21 Oct 2003 1:54 AM Body: Max, are you going to commit this patch?? --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-407 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-407 Summary: Composite keys do not work with native createSQLQuery Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Versions: 2.1 beta 4 2.1 beta 5 Assignee: Max Rydahl Andersen Reporter: David Morris Created: Thu, 16 Oct 2003 12:19 PM Updated: Sun, 19 Oct 2003 3:13 PM Description: Composite key columns are not found when replacing bracketed names. See thread http://forum.hibernate.org/viewtopic.php?t=924785 for more details. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 08:26:08
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Tue, 21 Oct 2003 3:05 AM Body: I did not commit because of: "Max, I think you understand this issue, so please take a look, but check with me before changing anything. TIA." So, if you think the patch is a-ok, then you can just commit - or say the word and I'll do it ;) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-407 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-407 Summary: Composite keys do not work with native createSQLQuery Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Versions: 2.1 beta 4 2.1 beta 5 Assignee: Max Rydahl Andersen Reporter: David Morris Created: Thu, 16 Oct 2003 12:19 PM Updated: Sun, 19 Oct 2003 3:13 PM Description: Composite key columns are not found when replacing bracketed names. See thread http://forum.hibernate.org/viewtopic.php?t=924785 for more details. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 08:23:36
|
Message: The following issue has been closed. Resolver: Gavin King Date: Tue, 21 Oct 2003 2:39 AM HB-399 is a better statement of this --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-291 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-291 Summary: support for select for update request for oracle on queries Type: New Feature Status: Closed Priority: Major Resolution: DUPLICATE Project: Hibernate2 Components: core Assignee: Gavin King Reporter: luc Created: Tue, 26 Aug 2003 2:38 AM Updated: Tue, 21 Oct 2003 2:39 AM Description: See the following post: http://sourceforge.net/forum/forum.php?thread_id=922434&forum_id=128638 Thanks a lot --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 08:20:58
|
Message: The following issue has been closed. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-268 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-268 Summary: java.sql.Connection.getWarning() is not allowed on closed con. Type: Patch Status: Closed Priority: Major Resolution: DUPLICATE Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Avoka Created: Sat, 16 Aug 2003 10:25 AM Updated: Tue, 21 Oct 2003 2:14 AM Description: Index: SessionFactoryImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/SessionFactory Impl.java,v retrieving revision 1.26.2.3 diff -r1.26.2.3 SessionFactoryImpl.java 267c267 < --- > 299,300c299,302 < JDBCExceptionReporter.logWarnings( conn.getWarnings() ); < conn.clearWarnings(); --- > if(!conn.isClosed()) { > JDBCExceptionReporter.logWarnings( conn.getWarnings() ); > conn.clearWarnings(); > } --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 08:15:24
|
Message: The following issue has been closed. Resolver: Gavin King Date: Tue, 21 Oct 2003 2:20 AM This belongs on the Wiki. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-249 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-249 Summary: CustomType for mapping classes onto Integers for use with <any> Type: Patch Status: Closed Priority: Minor Resolution: WON'T FIX Project: Hibernate2 Assignee: Reporter: Dhananjay Nene Created: Tue, 12 Aug 2003 3:03 AM Updated: Tue, 21 Oct 2003 2:20 AM Environment: Not applicable Description: The default mapping mechanism for <any> mapping is the class name. This custom type allows for creating integer values for each class, and mapping the classes onto the integer values. Thus the table needs to have a integer column and a column corresponding to the primary key of the other table. Using this class requires creating a derived class as suggested below. Sample mapping will be as follows : Scenario : An invoice table stores a reference to a Customer. Customer is an abstract base class and has two derived classes ExternalCustomer and InternalCustomer. Table-per-concreteclass mapping is used. Invoice table has two columns for mapping the customer - customerType and customerId. CustomerType == 1 implies InternalCustomer, CustomerType == 2 implies ExternalCustomer. InvoiceClass has a method called getCustomer() <!-- Mapping snippet in Invoice table --> <any name="customer" id-type="long" meta-type="com.example.hibernate.customtype.CustomerTypeMapper"> <column name="customerType"/> <column name="customerId"/> </any> /*********************************************************** Class created by End User ***********************************************************/ public class CustomerTypeMapper extends ClassToIntegerMapper { static public final Integer INTERNAL_CUSTOMER = new Integer(1); static public final Integer EXTERNAL_CUSTOMER = new Integer(2); static final private ClassToIntValue[] mappings = { new ClassToIntValue(INTERNAL_CUSTOMER, InternalCustomer.class), new ClassToIntValue(EXTERNAL_CUSTOMER, ExternalCustomer.class) }; public ClassToIntValue[] getMappings() { return mappings; } } /*********************************************************** Class which reflects this patch itself ***********************************************************/ package com.example.hibernate.customtype; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; import net.sf.hibernate.Hibernate; import net.sf.hibernate.HibernateException; import net.sf.hibernate.UserType; /** * @author Dhananjay Nene */ abstract public class ClassToIntegerMapper implements UserType { static final private int[] TYPES = {Types.INTEGER }; abstract public ClassToIntValue[] getMappings(); public int[] sqlTypes() { return TYPES; } public Class returnedClass() { return java.lang.Class.class; } public boolean equals(Object arg0, Object arg1) throws HibernateException { if (arg0 == arg1) return true; if ((arg0 == null) || (arg1 == null)) return false; return ((java.lang.Class) arg0).equals((java.lang.Class) arg1); } public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException { Integer result = (Integer) Hibernate.INTEGER.nullSafeGet(rs,names[0]); if(result == null) { return null; } ClassToIntValue[] mappings = getMappings(); for(int i = 0 ; i < mappings.length ; i++) { if (result.equals(mappings[i].getIntVal())) { return mappings[i].getClazz(); } } return null; } public void nullSafeSet(PreparedStatement stmt, Object value, int index) throws HibernateException, SQLException { java.lang.Class clazz = (java.lang.Class) value; if (clazz == null) { Hibernate.INTEGER.nullSafeSet(stmt,null,index); return; } Integer intval = null; ClassToIntValue[] mappings = getMappings(); for(int i = 0 ; i < mappings.length ; i++) { if (clazz.equals(mappings[i].getClazz())) { intval = mappings[i].getIntVal(); } } Hibernate.INTEGER.nullSafeSet(stmt,intval,index); } public Object deepCopy(Object arg0) throws HibernateException { if (arg0 == null) return null; Class clazz = (Class)arg0; Class newClazz = (Class) Hibernate.CLASS.deepCopy(clazz); return newClazz; } public boolean isMutable() { return false; } } --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 08:08:50
|
Message: The following issue has been closed. Resolver: Gavin King Date: Tue, 21 Oct 2003 2:43 AM HIbernate now looks at the version property. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-22 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-22 Summary: unsaved-value for <timestampe>, <version>, <property> Type: New Feature Status: Closed Priority: Minor Resolution: FIXED Project: Hibernate2 Components: core Fix Fors: 2.1 beta 4 Assignee: Gavin King Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:12 AM Updated: Tue, 21 Oct 2003 2:43 AM Description: unsaved-value for <property> Currently only the <id> and <composite-id> elements permit the unsaved-value attribute. There are a couple of circumstances where that is *not* convenient; particularly in the case of assigned identifiers. So we should generalize the model and allow unsaved-value for <property> or <key-property>. http://sourceforge.net/tracker/index.php?func=detail&aid=650587&group_id=40712&atid=428711 --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 07:59:34
|
Message: The following issue has been re-assigned. Assignee: Gavin King (mailto:ga...@in...) Assigner: Gavin King (mailto:ga...@in...) Date: Tue, 21 Oct 2003 2:18 AM Comment: OK, I might apply this patch. Still, I think that we need to cache the results of concreteQueries(), rather than calling it each time. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-379 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-379 Summary: IN clause in an HQL query confuses the preprocessor. Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Gavin King Reporter: Bulent Erdemir Created: Fri, 3 Oct 2003 3:52 PM Updated: Tue, 21 Oct 2003 2:18 AM Description: check the related forum postings for detailed information at: http://forum.hibernate.org/viewtopic.php?p=2173569&sid=298fed84e2b015aff203a1f1bd83ab80#2173569 For queries having an IN clause, this confuses the preprocessor and causes hibernate to call getImportedClass() in QueryTranslator.concreteQueries() for each token in the query. This also causes long parsing time especially noticeable when running hibernate code under Jboss in which a different classloader is used. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 07:50:00
|
Message: The following issue has been re-assigned. Assignee: Gavin King (mailto:ga...@in...) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-374 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-374 Summary: Wrong SQL statement with field "elementId" Type: Bug Status: Assigned Priority: Blocker Project: Hibernate2 Versions: 2.0.3 Assignee: Gavin King Reporter: Andrei Pavlenko Created: Wed, 1 Oct 2003 9:32 AM Updated: Tue, 21 Oct 2003 2:07 AM Environment: Sybase Description: I have "composite-id" with two fields. I want to create "many-to-one" reference for field "elementId" but generated by Hibernate SQL query is incorrect. When I change column name to "elementOwnerId" it is generated correctly. See attached files. Wrong SQL: select attribut0_.attributeId as attributeId, attribut0_.elementId as elementId, attribut0_.possibleAttributeValueId as possible3_, attribut0_.attributeValueFreeText as attribut4_, attribut0_.attributeId as attribut1_, attribut0_.elementId as elementId from AttributeValue attribut0_ where (attribut0_.elementId=? )and(attribut0_.attributeId=? ) Error message: Select expression results in more than one column having same name. Column name 'elementId' is specified more than once --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 07:49:04
|
Message: The following issue has been closed. Resolver: Gavin King Date: Tue, 21 Oct 2003 2:00 AM Ummmm .... I can't see any reason to support this. AFAICT, this is an exotic feature that means diff things on diff databases. If you want to continue this discussion, the devel list is the correct place. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-398 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-398 Summary: Support for LOCK IN SHARE MODE Type: New Feature Status: Closed Priority: Major Resolution: WON'T FIX Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Reporter: Gerjon de Vries Created: Tue, 14 Oct 2003 7:35 AM Updated: Tue, 21 Oct 2003 2:00 AM Environment: Not specific Description: Currently hibernate supports explicit locking strategies via LockMode.UPGRADE and LockMode.READ. However, there does not seem to be a lockmode that represents the SELECT xxxx LOCK IN SHARE MODE. (I.e. to select row(s) that should not be altered by other sessions, and need not be altered by the current transaction). Is this going to be supported? --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 07:49:03
|
Message: The following issue has been re-assigned. Assignee: Gavin King (mailto:ga...@in...) Assigner: Gavin King (mailto:ga...@in...) Date: Tue, 21 Oct 2003 1:53 AM Comment: I'll review this when I get a chance. How will this affect Hibernate's dependencies, by the way? This stuff might really belong in the extensions package, or on the Wiki, if oscache has too much external dependencies. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-412 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-412 Summary: OSCache support for Hibernate 2.1 Type: Improvement Status: Assigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Gavin King Reporter: Mathias Bogaert Created: Mon, 20 Oct 2003 6:34 AM Updated: Tue, 21 Oct 2003 1:53 AM Environment: OSCache 2.0 and Hibernate 2.1 (CVS as from yesterday) Description: Attached is an example how to integrate OpenSymphony OSCache and Hibernate's 2.1 caching system. Because of the fact that the cache is not reponsible for refreshing, the nice fail-over feature of OSCache is not used (yet). --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 07:42:22
|
Message: The following issue has been re-assigned. Assignee: (mailto:) Assigner: Gavin King (mailto:ga...@in...) Date: Tue, 21 Oct 2003 2:38 AM Comment: unassigning this from myself, since I'm not currently working on it (it would be good, though) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-35 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-35 Summary: Commit/rollback callbacks Type: New Feature Status: Unassigned Priority: Major Project: Hibernate2 Assignee: Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:21 AM Updated: Tue, 21 Oct 2003 2:38 AM Description: Commit/rollback callbacks Please add transaction hooks to the interceptor interface that will inform interceptor implementations of commits and rollback events. http://sourceforge.net/tracker/index.php?func=detail&aid=728207&group_id=40712&atid=428711 --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 07:35:49
|
The following issue has been updated: Updater: Gavin King (mailto:ga...@in...) Date: Tue, 21 Oct 2003 2:05 AM Changes: priority changed from Blocker --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-378&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-378 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-378 Summary: error generate SQL from a HQL who use LEFT JOIN(on more levels) Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0rc2 2.1 2.0 final 2.0.1 2.0.2 2.0.3 2.1 beta 1 2.1 beta 2 2.1 beta 3 2.1 final 2.1 beta 4 Assignee: Gavin King Reporter: Adrian Minciuna Created: Fri, 3 Oct 2003 9:51 AM Updated: Tue, 21 Oct 2003 2:05 AM Environment: Windows 2000 sp4, JDK 1.4.1_02 Description: Bug: i have 2 classes DACPerson and DACDepartment DACPerson has an inner object manager with DACPerson , and an object department with type DACDepartment. Thus, has 2 relations <many-to-one> I need an hql like this 1) using left join select als.name, als0.name, als1.name, als2.name from DACPerson as als left join als.manager as als0 left join als.manager.manager as als1 left join als.manager.department as als2 where als.pkid=als.hcod In this case hibernate generate a wrong SQL : select tstdacpe0_.PKID as x0_0_,tstdacde3_.NAME as x1_0_, tstdacpe2_.NAME as x2_0_, tstdacpe0_.NAME as x3_0_,tstdacpe1_.NAME as x4_0_ from PERSON2 tstdacpe0_ left outer join PERSON2 tstdacpe1_ on tstdacpe0_.MGR_ID=tstdacpe1_.PKID left outer join PERSON2 tstdacpe2_ on tstdacpe1_.MGR_ID=tstdacpe2_.PKID left outer join DEPT tstdacde3_ on tstdacpe1_.Dept_id=tstdacde3_.PKID where and and ((tstdacpe0_.PKID=tstdacpe0_.HCOD )) java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Incorrect syntax near the keyword 'and'. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)..... ------------------------------------------- Obs. if i try a HQL,a little bit simple ex: select als.name, als0.name, als1.name from DACPerson as als left join als.manager as als0 left join als.manager.department as als1 where als.pkid=als.hcod i get following error FINE: net.sf.hibernate.hql.QueryTranslator.compile() - unexpected query compilation problem java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1480) at java.lang.String.substring(String.java:1447) at net.sf.hibernate.sql.QuerySelect.toQueryString(QuerySelect.java:109) at net.sf.hibernate.hql.QueryTranslator.renderSQL(QueryTranslator.java:515) at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:151) --------------------------------------------------------- 3) If i modify hql like this : select als.name, als0.name, als1.name, als2.name from DACPerson as als left join als.manager as als0 left join als0.manager as als1 left join als0.department as als2 where als.pkid=als.hcod and IT'S WORK fine --------------------------------------------------- Obs: i tested also on Hibern8 IDE --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 07:33:28
|
Message: The following issue has been re-assigned. Assignee: Gavin King (mailto:ga...@in...) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-323 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-323 Summary: Proxool properties specified in hibernate.properties Type: Patch Status: Assigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 Assignee: Gavin King Reporter: Craig Raw Created: Thu, 11 Sep 2003 5:09 AM Updated: Tue, 21 Oct 2003 2:28 AM Description: As discussed in the Hibernate foruum: There is a problem in configuring Proxool from properties specified in hibernate.properties. These are the properties prefixed by hibernate.proxool.*. In determining which ConnectionProvider to use, ConnectionProviderFactory looks in order for a properties set for hibernate.connection.datasource, hibernate.c3p0.max_size, hibernate.dbcp.maxActive, hibernate.connection.url, and then the Proxool properties. This means that if the hibernate.connection.url property is specified, one cannot obtain a Proxool connection provider. However, when one sets hibernate.proxool.existing_pool=false and uses the hibernate.proxool.* properties, the hibernate.connection.url is used in ProxoolConnectionProvider to create the pool. This patch changes the order in ConnectionProviderFactory to look for the Proxool properties before the hibernate.connection.url property. (BTW, using hibernate.proxool.* properties is useful when configuring pools dynamically, as the external configuration sources for Proxool are more difficult to change.) --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 07:16:30
|
Message: The following issue has been closed. Resolver: Gavin King Date: Tue, 21 Oct 2003 1:48 AM There is an existing feature request for support for VARCHAR column types. In your case, however, I can't see why PersistentEnumType doesn't work. If it really doesn't work, you can use a UserType, which is better anyway. I'm not at all convinced that PersistentEnum is a good thing, and I don't want to add more interfaces. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-411 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-411 Summary: PersistentEnum differents from SMALLINT Type: Improvement Status: Closed Priority: Minor Resolution: REJECTED Project: Hibernate2 Assignee: Reporter: Mauro Franceschini Created: Mon, 20 Oct 2003 4:11 AM Updated: Tue, 21 Oct 2003 1:48 AM Environment: Windows XP, JDK 1.4.2 Description: I have a database in which many enum types are present but many of them are not available as small integer types. They map legacy data or external specification data. I think will be useful the implementation of a PersistentEnum interface support with types others than SMALLINT. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-21 06:56:19
|
Message: The following issue has been re-assigned. Assignee: David Channon (mailto:da...@hi...) Assigner: Gavin King (mailto:ga...@in...) Date: Tue, 21 Oct 2003 1:49 AM Comment: David, this is for you. Looks like it probably belongs in the user forum, not JIRA, but I can't be sure. Please reject this issue of that is the case. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-410 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-410 Summary: unable to use hbm2java with middlegen . I have a generator-class for an id but it seems to complain. Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Components: toolset Versions: 2.0.3 Assignee: David Channon Reporter: sudhir srinivasan Created: Sun, 19 Oct 2003 9:36 PM Updated: Tue, 21 Oct 2003 1:49 AM Environment: windows, jdk1.4.1 Description: I am trying to use hbm2java with middlegen generated hbm.xml files This is my build file task foor hgm2java. <target name="hbm2java" depends="middlegen" description="Generate .java from .hbm files."> <echo>running a search</echo> <java classname="net.sf.hibernate.tool.hbm2java.CodeGenerator" classpathref="hbm2java.class.path" > <arg value="--output=${build.classes.dir}"/> <arg value="--config=${basedir}/hbm2java.xml"/> <arg value="${build.dir}/gen-src/airline/hibernate/Channel.hbm.xml"/> </java> </target> Here is the file generated by middlegen . <?xml version="1.0"?> <!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > <hibernate-mapping> <!-- Created by Middlegen Hibernate plugin http://boss.bekk.no/boss/middlegen/ http://hibernate.sourceforge.net/ --> <class name="airline.hibernate.Channel" table="channels" > <!-- simple properties --> <id generator-class="assigned" name="channelId" type="int" column="channel_id" not-null="true" length="3" > <property name="description" type="java.lang.String" column="description" length="255" > <property name="hits" type="int" column="hits" length="1" > <property name="lastUpdated" type="java.sql.Timestamp" column="last_updated" length="19" > <property name="site" type="java.lang.String" column="site" length="255" > <property name="creator" type="java.lang.String" column="creator" length="255" > <property name="publisher" type="java.lang.String" column="publisher" length="255" > <!-- associations --> </class> </hibernate-mapping> here is error [java] Oct 19, 2003 10:32:33 PM net.sf.hibernate.tool.hbm2java.CodeGenerator$1 error [java] SEVERE: Error parsing XML: file:/C:/eclipse/workspace/bloggagg/build/gen-src/airline/hibernate/Channel.hbm.xml(28) [java] org.xml.sax.SAXParseException: Attribute "generator-class" must be declared for element type "id". [java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source) [java] at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) [java] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:354) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:707) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:689) [java] at net.sf.hibernate.tool.hbm2java.CodeGenerator.main(CodeGenerator.java:93) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:150) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:443) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.Task.perform(Task.java:341) [java] at org.apache.tools.ant.Target.execute(Target.java:309) [java] at org.apache.tools.ant.Target.performTasks(Target.java:336) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335) [java] at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172) [java] at java.lang.Thread.run(Thread.java:536) [java] Oct 19, 2003 10:32:33 PM net.sf.hibernate.tool.hbm2java.CodeGenerator$1 error [java] SEVERE: Error parsing XML: file:/C:/eclipse/workspace/bloggagg/build/gen-src/airline/hibernate/Channel.hbm.xml(28) [java] org.xml.sax.SAXParseException: Attribute "not-null" must be declared for element type "id". [java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source) [java] at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) [java] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:354) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:707) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:689) [java] at net.sf.hibernate.tool.hbm2java.CodeGenerator.main(CodeGenerator.java:93) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:150) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:443) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.Task.perform(Task.java:341) [java] at org.apache.tools.ant.Target.execute(Target.java:309) [java] at org.apache.tools.ant.Target.performTasks(Target.java:336) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335) [java] at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172) [java] at java.lang.Thread.run(Thread.java:536) [java] Oct 19, 2003 10:32:33 PM net.sf.hibernate.tool.hbm2java.CodeGenerator$1 error [java] SEVERE: Error parsing XML: file:/C:/eclipse/workspace/bloggagg/build/gen-src/airline/hibernate/Channel.hbm.xml(68) [java] org.xml.sax.SAXParseException: The element type "property" must be terminated by the matching end-tag "</property>". [java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [java] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:354) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:707) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:689) [java] at net.sf.hibernate.tool.hbm2java.CodeGenerator.main(CodeGenerator.java:93) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:150) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:443) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.Task.perform(Task.java:341) [java] at org.apache.tools.ant.Target.execute(Target.java:309) [java] at org.apache.tools.ant.Target.performTasks(Target.java:336) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335) [java] at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172) [java] at java.lang.Thread.run(Thread.java:536) [java] org.jdom.JDOMException: Error on line 68 of document file:/C:/eclipse/workspace/bloggagg/build/gen-src/airline/hibernate/Channel.hbm.xml: The element type "property" must be terminated by the matching end-tag "</property>". [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:363) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:707) [java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:689) [java] at net.sf.hibernate.tool.hbm2java.CodeGenerator.main(CodeGenerator.java:93) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:150) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:443) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.Task.perform(Task.java:341) [java] at org.apache.tools.ant.Target.execute(Target.java:309) [java] at org.apache.tools.ant.Target.performTasks(Target.java:336) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335) [java] at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172) [java] at java.lang.Thread.run(Thread.java:536) --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-20 15:45:22
|
The following comment has been added to this issue: Author: Mathias Bogaert Created: Mon, 20 Oct 2003 7:48 AM Body: Another bugfix; add cache.cancelUpdate(String.valueOf(key)); in the catch for NeedRefreshException before returning null. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-412 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-412 Summary: OSCache support for Hibernate 2.1 Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Mathias Bogaert Created: Mon, 20 Oct 2003 6:34 AM Updated: Mon, 20 Oct 2003 6:35 AM Environment: OSCache 2.0 and Hibernate 2.1 (CVS as from yesterday) Description: Attached is an example how to integrate OpenSymphony OSCache and Hibernate's 2.1 caching system. Because of the fact that the cache is not reponsible for refreshing, the nice fail-over feature of OSCache is not used (yet). --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-20 14:43:12
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-411 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-411 Summary: PersistentEnum differents from SMALLINT Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Assignee: Reporter: Mauro Franceschini Created: Mon, 20 Oct 2003 4:11 AM Updated: Mon, 20 Oct 2003 4:11 AM Environment: Windows XP, JDK 1.4.2 Description: I have a database in which many enum types are present but many of them are not available as small integer types. They map legacy data or external specification data. I think will be useful the implementation of a PersistentEnum interface support with types others than SMALLINT. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-20 14:33:30
|
The following comment has been added to this issue: Author: Mathias Bogaert Created: Mon, 20 Oct 2003 5:11 AM Body: Tried again with the latest Hibernate 2.1 (CVS from yesterday) and I'm unable to reproduce the problem. So it seems to have resolved itself! --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-296 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-296 Summary: ConcurrentModificationException when initializing collection Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 Assignee: Gavin King Reporter: Mathias Bogaert Created: Thu, 28 Aug 2003 6:49 AM Updated: Thu, 28 Aug 2003 3:41 PM Environment: 2.1 beta 2 from CVS Description: When initializing a collection, I get the following stacktrace (not seen with Hibernate 2.0.3): 8047 ERROR [tcpConnection-81-0] (webwork.dispatcher.ServletDispatcher:188) - Could not execute action java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.remove(HashMap.java:801) at net.sf.hibernate.impl.SessionImpl.endLoadingCollections(SessionImpl.java:2973) at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:224) at net.sf.hibernate.loader.Loader.doFind(Loader.java:113) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:720) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:703) at net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:74) at net.sf.hibernate.impl.SessionImpl.initialize(SessionImpl.java:3101) at net.sf.hibernate.collection.PersistentCollection.forceLoad(PersistentCollection.java:236) at net.sf.hibernate.Hibernate.initialize(Hibernate.java:255) at com.intrasoft.persistence.hibernate.HibernatePersistenceService.initialize(HibernatePersistenceService.java:143) at com.intrasoft.sysaudit.mission.action.wizard.AbstractMissionStepAction.initializeMission(AbstractMissionStepAction.java:112) at com.intrasoft.sysaudit.mission.action.wizard.AbstractMissionStepAction.saveMissionInSession(AbstractMissionStepAction.java:74) at com.intrasoft.sysaudit.mission.action.wizard.MissionStep1.doExecute(MissionStep1.java:173) at com.opensymphony.xwork.ActionSupport.execute(ActionSupport.java:31) Here is my code: if (mission.getUnit() != null) { persistenceService.initialize(mission.getUnit().getUsers()); } and in HibernatePersistenceService: public void initialize(Object objectToInitialize) { try { if (!Hibernate.isInitialized(objectToInitialize)) { Hibernate.initialize(objectToInitialize); } } catch (HibernateException e) { throw new InfrastructureException(e); } } --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-20 12:54:01
|
The following comment has been added to this issue: Author: Mathias Bogaert Created: Mon, 20 Oct 2003 6:36 AM Body: To enable this cache, add <property name="hibernate.cache.provider_class">com.intrasoft.persistence.hibernate.cache.HibernateOSCacheProvider</property> to you hibernate.cfg.xml file --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-412 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-412 Summary: OSCache support for Hibernate 2.1 Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Mathias Bogaert Created: Mon, 20 Oct 2003 6:34 AM Updated: Mon, 20 Oct 2003 6:35 AM Environment: OSCache 2.0 and Hibernate 2.1 (CVS as from yesterday) Description: Attached is an example how to integrate OpenSymphony OSCache and Hibernate's 2.1 caching system. Because of the fact that the cache is not reponsible for refreshing, the nice fail-over feature of OSCache is not used (yet). --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-20 12:03:14
|
The following comment has been added to this issue: Author: Mathias Bogaert Created: Mon, 20 Oct 2003 7:01 AM Body: Small bugfix: remove static from public static GeneralCacheAdministrator CACHE = new GeneralCacheAdministrator(); in HibernateOSCache. This will create a cache instance for each mapped class, and thus locking will work (using synchronization). --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-412 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-412 Summary: OSCache support for Hibernate 2.1 Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Mathias Bogaert Created: Mon, 20 Oct 2003 6:34 AM Updated: Mon, 20 Oct 2003 6:35 AM Environment: OSCache 2.0 and Hibernate 2.1 (CVS as from yesterday) Description: Attached is an example how to integrate OpenSymphony OSCache and Hibernate's 2.1 caching system. Because of the fact that the cache is not reponsible for refreshing, the nice fail-over feature of OSCache is not used (yet). --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-20 11:35:41
|
The following issue has been updated: Updater: Mathias Bogaert (mailto:pa...@pa...) Date: Mon, 20 Oct 2003 6:35 AM Changes: Attachment changed to HibernateOSCacheProvider.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-412&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-412 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-412 Summary: OSCache support for Hibernate 2.1 Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Mathias Bogaert Created: Mon, 20 Oct 2003 6:34 AM Updated: Mon, 20 Oct 2003 6:35 AM Environment: OSCache 2.0 and Hibernate 2.1 (CVS as from yesterday) Description: Attached is an example how to integrate OpenSymphony OSCache and Hibernate's 2.1 caching system. Because of the fact that the cache is not reponsible for refreshing, the nice fail-over feature of OSCache is not used (yet). --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2003-10-20 11:35:41
|
The following issue has been updated: Updater: Mathias Bogaert (mailto:pa...@pa...) Date: Mon, 20 Oct 2003 6:34 AM Changes: Attachment changed to HibernateOSCache.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-412&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-412 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-412 Summary: OSCache support for Hibernate 2.1 Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Mathias Bogaert Created: Mon, 20 Oct 2003 6:34 AM Updated: Mon, 20 Oct 2003 6:34 AM Environment: OSCache 2.0 and Hibernate 2.1 (CVS as from yesterday) Description: Attached is an example how to integrate OpenSymphony OSCache and Hibernate's 2.1 caching system. Because of the fact that the cache is not reponsible for refreshing, the nice fail-over feature of OSCache is not used (yet). --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |