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-11-17 00:12:53
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-476 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-476 Summary: Version is incorrect in Environment.java (should be "2.1 beta 6") Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: David D Phillips Created: Sun, 16 Nov 2003 6:11 PM Updated: Sun, 16 Nov 2003 6:11 PM Description: Version is incorrect in Environment.java - remember to change this for the final release! It currently reads "2.1 beta 5", and should read "2.1 beta 6" --------------------------------------------------------------------- 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-11-17 00:01:54
|
The following issue has been updated: Updater: David D Phillips (mailto:dav...@ya...) Date: Sun, 16 Nov 2003 6:01 PM Changes: Attachment changed to MemoryCacheProviderTest.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-475 Summary: A better memory cache Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: David D Phillips Created: Sun, 16 Nov 2003 5:50 PM Updated: Sun, 16 Nov 2003 6:01 PM Description: A simple LRU memory cache backed on Java1.4 LinkedHashmap, with a maxSize & timeout configured via a properties file. I have the CacheProvider and Cache (And testcases ofcourse) How do I attach them? Please contact dav...@ya... for them! --------------------------------------------------------------------- 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-11-16 23:53:54
|
The following issue has been updated: Updater: David D Phillips (mailto:dav...@ya...) Date: Sun, 16 Nov 2003 5:51 PM Changes: Attachment changed to memoryCache.properties --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-475 Summary: A better memory cache Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: David D Phillips Created: Sun, 16 Nov 2003 5:50 PM Updated: Sun, 16 Nov 2003 5:51 PM Description: A simple LRU memory cache backed on Java1.4 LinkedHashmap, with a maxSize & timeout configured via a properties file. I have the CacheProvider and Cache (And testcases ofcourse) How do I attach them? Please contact dav...@ya... for them! --------------------------------------------------------------------- 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-11-16 23:53:54
|
The following issue has been updated: Updater: David D Phillips (mailto:dav...@ya...) Date: Sun, 16 Nov 2003 5:52 PM Changes: Attachment changed to MemoryCache.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-475 Summary: A better memory cache Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: David D Phillips Created: Sun, 16 Nov 2003 5:50 PM Updated: Sun, 16 Nov 2003 5:52 PM Description: A simple LRU memory cache backed on Java1.4 LinkedHashmap, with a maxSize & timeout configured via a properties file. I have the CacheProvider and Cache (And testcases ofcourse) How do I attach them? Please contact dav...@ya... for them! --------------------------------------------------------------------- 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-11-16 23:53:54
|
The following issue has been updated: Updater: David D Phillips (mailto:dav...@ya...) Date: Sun, 16 Nov 2003 5:52 PM Changes: Attachment changed to MemoryCacheProvider.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-475 Summary: A better memory cache Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: David D Phillips Created: Sun, 16 Nov 2003 5:50 PM Updated: Sun, 16 Nov 2003 5:52 PM Description: A simple LRU memory cache backed on Java1.4 LinkedHashmap, with a maxSize & timeout configured via a properties file. I have the CacheProvider and Cache (And testcases ofcourse) How do I attach them? Please contact dav...@ya... for them! --------------------------------------------------------------------- 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-11-16 23:51:54
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-475 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-475 Summary: A better memory cache Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: David D Phillips Created: Sun, 16 Nov 2003 5:50 PM Updated: Sun, 16 Nov 2003 5:50 PM Description: A simple LRU memory cache backed on Java1.4 LinkedHashmap, with a maxSize & timeout configured via a properties file. I have the CacheProvider and Cache (And testcases ofcourse) How do I attach them? Please contact dav...@ya... for them! --------------------------------------------------------------------- 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-11-16 18:56:54
|
The following issue has been updated: Updater: Chris Nelson (mailto:cne...@ya...) Date: Sun, 16 Nov 2003 12:54 PM Comment: This patch is agains the src tree only. Changes: Attachment changed to src-patch.txt --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-474&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-474 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-474 Summary: adding Criteria.count() method Type: Patch Status: Unassigned Priority: Major Project: Hibernate2 Versions: 2.1 2.1 rc1 Assignee: Reporter: Chris Nelson Created: Sun, 16 Nov 2003 12:53 PM Updated: Sun, 16 Nov 2003 12:54 PM Description: Adds a count() method to the Criteria class that does a modified query to return the count without returning entire query. --------------------------------------------------------------------- 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-11-16 18:54:54
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-474 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-474 Summary: adding Criteria.count() method Type: Patch Status: Unassigned Priority: Major Project: Hibernate2 Versions: 2.1 2.1 rc1 Assignee: Reporter: Chris Nelson Created: Sun, 16 Nov 2003 12:53 PM Updated: Sun, 16 Nov 2003 12:53 PM Description: Adds a count() method to the Criteria class that does a modified query to return the count without returning entire query. --------------------------------------------------------------------- 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-11-15 14:40:14
|
Message: The following issue has been closed. Resolver: Gavin King Date: Sat, 15 Nov 2003 8:39 AM We already fixed this. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-473 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-473 Summary: hibernate.properties names changed from 2.0.2? Type: Bug Status: Closed Priority: Trivial Resolution: DUPLICATE Project: Hibernate2 Versions: 2.1 beta 5 Assignee: Reporter: Les Hill Created: Sat, 15 Nov 2003 8:30 AM Updated: Sat, 15 Nov 2003 8:39 AM Environment: Using postgresql, binary distribution, XP Hibernate version is 2.1B6 Description: The reference documentation for 2.0.2 on setting up the schemaexport tool section 17.1.3, refers to the property: hibernate.connection.driver For 2.1B6 (at least) the actual property required is: hibernate.connection.driver_class --------------------------------------------------------------------- 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-11-15 14:32:14
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-473 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-473 Summary: hibernate.properties names changed from 2.0.2? Type: Bug Status: Unassigned Priority: Trivial Project: Hibernate2 Versions: 2.1 beta 5 Assignee: Reporter: Les Hill Created: Sat, 15 Nov 2003 8:30 AM Updated: Sat, 15 Nov 2003 8:30 AM Environment: Using postgresql, binary distribution, XP Hibernate version is 2.1B6 Description: The reference documentation for 2.0.2 on setting up the schemaexport tool section 17.1.3, refers to the property: hibernate.connection.driver For 2.1B6 (at least) the actual property required is: hibernate.connection.driver_class --------------------------------------------------------------------- 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-11-15 09:50:15
|
Message: The following issue has been closed. Resolver: Gavin King Date: Sat, 15 Nov 2003 3:49 AM OK, that was an obscure one ;) fixed in CVS. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-470 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-470 Summary: SQL Exception using a Map within a component Type: Bug Status: Closed Priority: Major Resolution: FIXED Project: Hibernate2 Components: core Fix Fors: 2.1 rc1 Versions: 2.1 beta 5 Assignee: Reporter: James Eitzmann Created: Fri, 14 Nov 2003 10:17 AM Updated: Sat, 15 Nov 2003 3:49 AM Environment: nt 2000, oracle 8.1.7, 1.4.1 sdk Description: I have a map within a component. When I run a query, I get an SQL exception: "Invalid Column Name". It appears that the SQL hibernate is generating is not including the columns from the mapping table. This works fine in 2.0.3. Mapping doc: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="test.hibernate.Test" table="OBJECT_STACKS" dynamic-update="true" > <id name="id" column="OBJECT_ID" type="string"> <generator class="com.artesia.server.common.TeamsIdGenerator"/> </id> <component name="testComponent" class="test.hibernate.TestComponent" insert="false" update="true" > <map name="attrMap" table="CONTENT_OBJECT_STORAGE_ATTR" outer-join="true" batch-size="16" > <key column="OBJECT_ID"/> <index column="ATTR_NAME" type="string"/> <element column="ATTR_VALUE" type="string"/> </map> </component> </class> </hibernate-mapping> Code: package test.hibernate; import java.sql.Connection; import java.sql.DriverManager; import java.util.ArrayList; import java.util.List; import net.sf.hibernate.Criteria; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.expression.Expression; import oracle.jdbc.driver.OracleDriver; /** * * */ public class Test { private String _id; private TestComponent _testComponent; public static void main(String[] args) throws Exception { DriverManager.registerDriver(new OracleDriver()); Connection con = DriverManager.getConnection("jdbc:oracle:oci8:@j817", "j_adm", "j_adm"); SessionFactory sf = new Configuration().configure().buildSessionFactory(); Session s = sf.openSession(con); ArrayList contentIdList = new ArrayList(1); contentIdList.add("e6656575d7c572592316a2d41bbc4f0a68a7140f"); Criteria c = s.createCriteria(Test.class); c.add(Expression.in("id", contentIdList)); List infoList = c.list(); } /** * @return Returns the id. */ public String getId() { return _id; } /** * @param id The id to set. */ public void setId(String id) { _id = id; } /** * @return Returns the testComponent. */ public TestComponent getTestComponent() { return _testComponent; } /** * @param testComponent The testComponent to set. */ public void setTestComponent(TestComponent testComponent) { _testComponent = testComponent; } } --------------------------------------------------------------------- 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-11-15 05:21:14
|
The following comment has been added to this issue: Author: Benoit Menendez Created: Fri, 14 Nov 2003 11:20 PM Body: My bad... I guess this was OK with 2.0 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-472 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-472 Summary: Possible bug in AbstractEntityPersister Type: Bug Status: Closed Priority: Major Resolution: REJECTED Project: Hibernate2 Components: core Versions: 2.1 rc1 Assignee: Reporter: Benoit Menendez Created: Fri, 14 Nov 2003 10:42 PM Updated: Fri, 14 Nov 2003 10:57 PM Description: I know I shouldn't do this, but I am calling: ClassPersister persister = getPersister(object); Serializable identifier = persister.getIdentifier(object); if (persister.isUnsaved(identifier)) ... where object is declared to have an "assigned" id generator. in AbstractEntityPersister.isUnsaved(Object object) the following lines: ... if ( hasIdentifierPropertyOrEmbeddedCompositeIdentifier() ) { return unsavedIdentifierValue.isUnsaved( getIdentifier(object) ); } ... appear wrong since the unsavedIdentifierValue.isUnsaved needs to be passed the object, not the identifier... Basically the getter method is called on the identifier (a String in this case) and not on the object itself. com.proinsight.core.KMSException: net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of system.UserSession.id at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:110) at net.sf.hibernate.persister.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:284) at net.sf.hibernate.persister.AbstractEntityPersister.isUnsaved(AbstractEntityPersister.java:406) ... Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:96) ... --------------------------------------------------------------------- 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-11-15 04:59:14
|
Message: The following issue has been closed. Resolver: Gavin King Date: Fri, 14 Nov 2003 10:57 PM It all looks correct to me. Looks like you are passing an id to AbstractEntityPersister.isUnsaved(Object), which is not the correct semantics. It takes the entity.. unsavedIdentifierValue.isUnsaved(Serializable) takes an id, on the other hand. Which is again correct. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-472 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-472 Summary: Possible bug in AbstractEntityPersister Type: Bug Status: Closed Priority: Major Resolution: REJECTED Project: Hibernate2 Components: core Versions: 2.1 rc1 Assignee: Reporter: Benoit Menendez Created: Fri, 14 Nov 2003 10:42 PM Updated: Fri, 14 Nov 2003 10:57 PM Description: I know I shouldn't do this, but I am calling: ClassPersister persister = getPersister(object); Serializable identifier = persister.getIdentifier(object); if (persister.isUnsaved(identifier)) ... where object is declared to have an "assigned" id generator. in AbstractEntityPersister.isUnsaved(Object object) the following lines: ... if ( hasIdentifierPropertyOrEmbeddedCompositeIdentifier() ) { return unsavedIdentifierValue.isUnsaved( getIdentifier(object) ); } ... appear wrong since the unsavedIdentifierValue.isUnsaved needs to be passed the object, not the identifier... Basically the getter method is called on the identifier (a String in this case) and not on the object itself. com.proinsight.core.KMSException: net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of system.UserSession.id at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:110) at net.sf.hibernate.persister.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:284) at net.sf.hibernate.persister.AbstractEntityPersister.isUnsaved(AbstractEntityPersister.java:406) ... Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:96) ... --------------------------------------------------------------------- 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-11-15 04:44:14
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-472 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-472 Summary: Possible bug in AbstractEntityPersister Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 rc1 Assignee: Reporter: Benoit Menendez Created: Fri, 14 Nov 2003 10:42 PM Updated: Fri, 14 Nov 2003 10:42 PM Description: I know I shouldn't do this, but I am calling: ClassPersister persister = getPersister(object); Serializable identifier = persister.getIdentifier(object); if (persister.isUnsaved(identifier)) ... where object is declared to have an "assigned" id generator. in AbstractEntityPersister.isUnsaved(Object object) the following lines: ... if ( hasIdentifierPropertyOrEmbeddedCompositeIdentifier() ) { return unsavedIdentifierValue.isUnsaved( getIdentifier(object) ); } ... appear wrong since the unsavedIdentifierValue.isUnsaved needs to be passed the object, not the identifier... Basically the getter method is called on the identifier (a String in this case) and not on the object itself. com.proinsight.core.KMSException: net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of system.UserSession.id at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:110) at net.sf.hibernate.persister.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:284) at net.sf.hibernate.persister.AbstractEntityPersister.isUnsaved(AbstractEntityPersister.java:406) ... Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:96) ... --------------------------------------------------------------------- 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-11-14 23:51:13
|
The following issue has been updated: Updater: Gavin King (mailto:ga...@hi...) Date: Fri, 14 Nov 2003 5:50 PM Comment: The select new Foo(....) syntax is intended for use with projections. Changes: type changed from Bug priority changed from Major --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-471&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-471 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-471 Summary: HQL selecting Java object returns null property values Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: Dominik Roblek Created: Fri, 14 Nov 2003 11:57 AM Updated: Fri, 14 Nov 2003 5:50 PM Description: Consider the following query: "select new Foo(bar) from eg.Bar as bar where bar.name = :name" In this query are all properties of bar except of it's identity returned as null values. Identity (primary key) is set to correct value. Dominik --------------------------------------------------------------------- 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-11-14 23:24:24
|
Message: The following issue has been closed. Resolver: Max Rydahl Andersen Date: Fri, 14 Nov 2003 5:23 PM have modified the core tests to mimic the same problem as in the test case - and still no problems. Closing this until someone can make a full test that fails. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-440 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-440 Summary: Direct collection property access Type: Bug Status: Closed Priority: Major Resolution: CANNOT REPRODUCE Project: Hibernate2 Components: core Fix Fors: 2.1 rc1 Versions: 2.1 beta 5 Assignee: Max Rydahl Andersen Reporter: Alexey Kaigorodov Created: Fri, 31 Oct 2003 3:26 AM Updated: Fri, 14 Nov 2003 5:23 PM Description: <bag name="..." access="field"> ... </bag> causes exception unless exists getter net.sf.hibernate.MappingException: Problem trying to set property type by reflection at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:103) at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:953) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:946) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:313) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1143) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:243) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:266) at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:349) at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:320) ... Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for ... in class ... -- With best regards, Alexey --------------------------------------------------------------------- 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-11-14 23:00:14
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Fri, 14 Nov 2003 4:59 PM Body: now i finally had time looking into this one....but I can't reproduce it! ...the attached test atleast does not fail ...have you written some special information to the database ? The test does not include any writes, and when adding my own writes it does not fail. So - pleae provide a failing test or we will close this one ;) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-440 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-440 Summary: Direct collection property access Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Max Rydahl Andersen Reporter: Alexey Kaigorodov Created: Fri, 31 Oct 2003 3:26 AM Updated: Mon, 3 Nov 2003 2:52 AM Description: <bag name="..." access="field"> ... </bag> causes exception unless exists getter net.sf.hibernate.MappingException: Problem trying to set property type by reflection at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:103) at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:953) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:946) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:313) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1143) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:243) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:266) at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:349) at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:320) ... Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for ... in class ... -- With best regards, Alexey --------------------------------------------------------------------- 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-11-14 22:22:14
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Fri, 14 Nov 2003 4:21 PM Body: geez - I did not notice that this patch is on 2.03....are we so lucky you have made it (or can make) it againts the v21branch ? (against 2.1b6 should be good enough) (sorry for da' late reaction) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-414 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-414 Summary: Informix dialect creates syntax errors in IDS 9.4 Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Versions: 2.0.2 Assignee: Max Rydahl Andersen Reporter: Finn McCann Created: Tue, 21 Oct 2003 11:01 AM Updated: Wed, 29 Oct 2003 10:56 AM Environment: Hibernate2 on JDK1.4 on Win2000, talking via Informix JDBC 2.21.JC5 driver to Informix IDS 9.4 on another Windows 2000 box. Description: Having tested Informix dialect in Hibernate2 against Informix IDS v9.4, we found a couple of issues: 1. Serial ids: <id name="id" column="ID" length="32" unsaved-value="null"> <generator class="uuid.hex"/> </id> creates a data type: INT8 SERIAL instead of: SERIAL8 The "INT8 SERIAL" causes a syntax error in IDS 9.4. 2. Foreign Key constraint names: <set name="upliftRates" lazy="true" cascade="all" order-by="EFFECTIVE_DATE desc"> <key column="NETWORK_ID" length="32"/> <one-to-many class="com.capetechnologies.multinet.domain.UpliftRate"/> </set> creates this ALTER TABLE statement: alter table MULTINET_TAX_RATES add constraint FKE1700D046924EC foreign key (NETWORK_ID) references MULTINET_NETWORK instead of: alter table MULTINET_TAX_RATES add constraint foreign key (NETWORK_ID) references MULTINET_NETWORK constraint FKE1700D046924EC Having "CONSTRAINT <constraint name>" within the statement instead of at the end causes a syntax error. This also applies to adding UNIQUE CONSTRAINTs. --------------------------------------------------------------------- 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-11-14 18:00:14
|
The following comment has been added to this issue: Author: Dominik Roblek Created: Fri, 14 Nov 2003 11:59 AM Body: The following query works fine: "select new Foo(bar.id, bar.name, bar.age, bar.taxNumber) from eg.Bar as bar where bar.name = :name" --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-471 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-471 Summary: HQL selecting Java object returns null property values Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: Dominik Roblek Created: Fri, 14 Nov 2003 11:57 AM Updated: Fri, 14 Nov 2003 11:57 AM Description: Consider the following query: "select new Foo(bar) from eg.Bar as bar where bar.name = :name" In this query are all properties of bar except of it's identity returned as null values. Identity (primary key) is set to correct value. Dominik --------------------------------------------------------------------- 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-11-14 17:58:14
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-471 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-471 Summary: HQL selecting Java object returns null property values Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: Dominik Roblek Created: Fri, 14 Nov 2003 11:57 AM Updated: Fri, 14 Nov 2003 11:57 AM Description: Consider the following query: "select new Foo(bar) from eg.Bar as bar where bar.name = :name" In this query are all properties of bar except of it's identity returned as null values. Identity (primary key) is set to correct value. Dominik --------------------------------------------------------------------- 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-11-14 16:35:13
|
The following comment has been added to this issue: Author: Gavin King Created: Fri, 14 Nov 2003 10:34 AM Body: oh there are attachments there. They got pushed off the browser page. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-470 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-470 Summary: SQL Exception using a Map within a component Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: James Eitzmann Created: Fri, 14 Nov 2003 10:17 AM Updated: Fri, 14 Nov 2003 10:18 AM Environment: nt 2000, oracle 8.1.7, 1.4.1 sdk Description: I have a map within a component. When I run a query, I get an SQL exception: "Invalid Column Name". It appears that the SQL hibernate is generating is not including the columns from the mapping table. This works fine in 2.0.3. Mapping doc: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="test.hibernate.Test" table="OBJECT_STACKS" dynamic-update="true" > <id name="id" column="OBJECT_ID" type="string"> <generator class="com.artesia.server.common.TeamsIdGenerator"/> </id> <component name="testComponent" class="test.hibernate.TestComponent" insert="false" update="true" > <map name="attrMap" table="CONTENT_OBJECT_STORAGE_ATTR" outer-join="true" batch-size="16" > <key column="OBJECT_ID"/> <index column="ATTR_NAME" type="string"/> <element column="ATTR_VALUE" type="string"/> </map> </component> </class> </hibernate-mapping> Code: package test.hibernate; import java.sql.Connection; import java.sql.DriverManager; import java.util.ArrayList; import java.util.List; import net.sf.hibernate.Criteria; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.expression.Expression; import oracle.jdbc.driver.OracleDriver; /** * * */ public class Test { private String _id; private TestComponent _testComponent; public static void main(String[] args) throws Exception { DriverManager.registerDriver(new OracleDriver()); Connection con = DriverManager.getConnection("jdbc:oracle:oci8:@j817", "j_adm", "j_adm"); SessionFactory sf = new Configuration().configure().buildSessionFactory(); Session s = sf.openSession(con); ArrayList contentIdList = new ArrayList(1); contentIdList.add("e6656575d7c572592316a2d41bbc4f0a68a7140f"); Criteria c = s.createCriteria(Test.class); c.add(Expression.in("id", contentIdList)); List infoList = c.list(); } /** * @return Returns the id. */ public String getId() { return _id; } /** * @param id The id to set. */ public void setId(String id) { _id = id; } /** * @return Returns the testComponent. */ public TestComponent getTestComponent() { return _testComponent; } /** * @param testComponent The testComponent to set. */ public void setTestComponent(TestComponent testComponent) { _testComponent = testComponent; } } --------------------------------------------------------------------- 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-11-14 16:33:13
|
The following comment has been added to this issue: Author: Gavin King Created: Fri, 14 Nov 2003 10:32 AM Body: Please resubmit this as a properly-packaged test case in a runnable form. TIA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-470 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-470 Summary: SQL Exception using a Map within a component Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: James Eitzmann Created: Fri, 14 Nov 2003 10:17 AM Updated: Fri, 14 Nov 2003 10:18 AM Environment: nt 2000, oracle 8.1.7, 1.4.1 sdk Description: I have a map within a component. When I run a query, I get an SQL exception: "Invalid Column Name". It appears that the SQL hibernate is generating is not including the columns from the mapping table. This works fine in 2.0.3. Mapping doc: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="test.hibernate.Test" table="OBJECT_STACKS" dynamic-update="true" > <id name="id" column="OBJECT_ID" type="string"> <generator class="com.artesia.server.common.TeamsIdGenerator"/> </id> <component name="testComponent" class="test.hibernate.TestComponent" insert="false" update="true" > <map name="attrMap" table="CONTENT_OBJECT_STORAGE_ATTR" outer-join="true" batch-size="16" > <key column="OBJECT_ID"/> <index column="ATTR_NAME" type="string"/> <element column="ATTR_VALUE" type="string"/> </map> </component> </class> </hibernate-mapping> Code: package test.hibernate; import java.sql.Connection; import java.sql.DriverManager; import java.util.ArrayList; import java.util.List; import net.sf.hibernate.Criteria; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.expression.Expression; import oracle.jdbc.driver.OracleDriver; /** * * */ public class Test { private String _id; private TestComponent _testComponent; public static void main(String[] args) throws Exception { DriverManager.registerDriver(new OracleDriver()); Connection con = DriverManager.getConnection("jdbc:oracle:oci8:@j817", "j_adm", "j_adm"); SessionFactory sf = new Configuration().configure().buildSessionFactory(); Session s = sf.openSession(con); ArrayList contentIdList = new ArrayList(1); contentIdList.add("e6656575d7c572592316a2d41bbc4f0a68a7140f"); Criteria c = s.createCriteria(Test.class); c.add(Expression.in("id", contentIdList)); List infoList = c.list(); } /** * @return Returns the id. */ public String getId() { return _id; } /** * @param id The id to set. */ public void setId(String id) { _id = id; } /** * @return Returns the testComponent. */ public TestComponent getTestComponent() { return _testComponent; } /** * @param testComponent The testComponent to set. */ public void setTestComponent(TestComponent testComponent) { _testComponent = testComponent; } } --------------------------------------------------------------------- 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-11-14 16:22:14
|
The following comment has been added to this issue: Author: James Eitzmann Created: Fri, 14 Nov 2003 10:21 AM Body: Program Output: 0 INFO [main] cfg.Environment - Hibernate 2.1 beta 5 10 INFO [main] cfg.Environment - hibernate.properties not found 30 INFO [main] cfg.Environment - using CGLIB reflection optimizer 70 INFO [main] cfg.Configuration - Configuration resource: /hibernate.c= fg.xml 1924 DEBUG [main] util.DTDEntityResolver - trying to locate http://hiberna= te.sourceforge.net/hibernate-configuration-2.0.dtd in classpath under net/s= f/hibernate/ 1934 DEBUG [main] util.DTDEntityResolver - found http://hibernate.sourcefo= rge.net/hibernate-configuration-2.0.dtd in classpath 2384 DEBUG [main] cfg.Configuration - dialect=3Dnet.sf.hibernate.dialect.O= racleDialect 2394 DEBUG [main] cfg.Configuration - show_sql=3Dtrue 2394 DEBUG [main] cfg.Configuration - use_outer_join=3Dtrue 2404 DEBUG [main] cfg.Configuration - java:comp/env/hibernate/SessionFacto= ry<-org.dom4j.tree.DefaultAttribute@b02928 [Attribute: name resource value = "test/hibernate/test.hbm.xml"] 2404 INFO [main] cfg.Configuration - Mapping resource: test/hibernate/tes= t.hbm.xml 2444 DEBUG [main] util.DTDEntityResolver - trying to locate http://hiberna= te.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibe= rnate/ 2465 DEBUG [main] util.DTDEntityResolver - found http://hibernate.sourcefo= rge.net/hibernate-mapping-2.0.dtd in classpath 3877 INFO [main] cfg.Binder - Mapping class: test.hibernate.Test -> OBJEC= T_STACKS 4548 DEBUG [main] cfg.Binder - Mapped property: id -> OBJECT_ID, type: str= ing 4748 INFO [main] cfg.Binder - Mapping collection: test.hibernate.Test.tes= tComponent.attrMap -> CONTENT_OBJECT_STORAGE_ATTR 4889 DEBUG [main] cfg.Binder - Mapped property: attrMap, type: java.util.M= ap 6532 DEBUG [main] cfg.Binder - Mapped property: testComponent, type: test.= hibernate.TestComponent 6532 INFO [main] cfg.Configuration - Configured SessionFactory: java:comp= /env/hibernate/SessionFactory 6542 DEBUG [main] cfg.Configuration - properties: {java.runtime.name=3DJav= a(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=3DC:\j= ava\1.4.1\jre\bin, java.vm.version=3D1.4.1_02-b06, java.vm.vendor=3DSun Mic= rosystems Inc., java.vendor.url=3Dhttp://java.sun.com/, path.separator=3D;,= java.vm.name=3DJava HotSpot(TM) Client VM, file.encoding.pkg=3Dsun.io, use= _outer_join=3Dtrue, user.country=3DUS, sun.os.patch.level=3DService Pack 4,= java.vm.specification.name=3DJava Virtual Machine Specification, user.dir= =3DC:\teams\test, java.runtime.version=3D1.4.1_02-b06, java.awt.graphicsenv= =3Dsun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=3DC:\java\1.4.1\jre= \lib\endorsed, os.arch=3Dx86, java.io.tmpdir=3DC:\DOCUME~1\jeitzman\LOCALS~= 1\Temp\, line.separator=3D , java.vm.specification.vendor=3DSun Microsystems Inc., user.variant=3D, os= .name=3DWindows 2000, sun.java2d.fontpath=3D, java.library.path=3DC:\java\1= .4.1\bin;.;C:\winnt\system32;C:\winnt;C:\Perl\bin\;C:\cm\bin;C:\bin;C:\orac= le\ora90\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\winnt\system32;C:\win= nt;C:\PVCS\DIMENS~1\7.1\PROG;C:\winnt\System32\Wbem;c:\java\1.4.1\bin;C:\ja= va\apache-ant-1.5.3-1\bin, java.specification.name=3DJava Platform API Spec= ification, java.class.version=3D48.0, java.util.prefs.PreferencesFactory=3D= java.util.prefs.WindowsPreferencesFactory, os.version=3D5.0, user.home=3DC:= \Documents and Settings\jeitzman, user.timezone=3D, java.awt.printerjob=3Ds= un.awt.windows.WPrinterJob, file.encoding=3DCp1252, java.specification.vers= ion=3D1.4, show_sql=3Dtrue, user.name=3Djeitzman, java.class.path=3DC:\team= s\test\classes;C:\teams\common\classes;C:\teams\common\lib\commons-collecti= ons.jar;C:\teams\common\lib\log4j.jar;C:\teams\common\lib\commons-pool.jar;= C:\teams\common\lib\commons-dbcp.jar;C:\teams\common\lib\commons-lang-2.0.j= ar;C:\java\lib\classes12.jar;C:\teams\sdk\classes;C:\teams\sdk\lib\vbjorb.j= ar;C:\teams\sdk\lib\activation.jar;C:\teams\sdk\lib\jhelp.jar;C:\teams\sdk\= lib\mail.jar;C:\teams\sdk\lib\swingall.jar;C:\teams\sdk\lib\xerces.jar;C:\t= eams\sdk\lib\Regexp.jar;C:\teams\sdk\lib\xml4j_2_0_15.jar;C:\teams\sdk\lib\= Ftp.jar;C:\teams\sdk\lib\vbjapp.jar;C:\java\jboss-3.2.2RC4\client\jboss-j2e= e.jar;C:\java\commons-lang-2.0\commons-lang-2.0.jar;C:\teams\sdk\lib\JConfi= g.zip;C:\teams\sdk\lib\classes12.zip;C:\teams\server\classes;C:\teams\serve= r\lib\activation.jar;C:\teams\server\lib\xml4j_2_0_15.jar;C:\teams\server\l= ib\FPLibrary.jar;C:\teams\server\lib\vbjorb.jar;C:\teams\server\lib\Regexp.= jar;C:\teams\server\lib\mail.jar;C:\teams\server\lib\vbjapp.jar;C:\java\hib= ernate-2.1\hibernate2.jar;C:\java\hibernate-2.1\lib\dom4j.jar;C:\java\hiber= nate-2.1\lib\cglib-asm.jar;C:\java\hibernate-2.1\lib\commons-lang.jar;C:\ja= va\hibernate-2.1\lib\commons-logging.jar;C:\java\hibernate-2.1\lib\odmg.jar= , hibernate.show_sql=3Dtrue, java.vm.specification.version=3D1.0, java.home= =3DC:\java\1.4.1\jre, sun.arch.data.model=3D32, hibernate.dialect=3Dnet.sf.= hibernate.dialect.OracleDialect, user.language=3Den, java.specification.ven= dor=3DSun Microsystems Inc., awt.toolkit=3Dsun.awt.windows.WToolkit, hibern= ate.cglib.use_reflection_optimizer=3Dtrue, java.vm.info=3Dmixed mode, java.= version=3D1.4.1_02, java.ext.dirs=3DC:\java\1.4.1\jre\lib\ext, sun.boot.cla= ss.path=3DC:\java\1.4.1\jre\lib\rt.jar;C:\java\1.4.1\jre\lib\i18n.jar;C:\ja= va\1.4.1\jre\lib\sunrsasign.jar;C:\java\1.4.1\jre\lib\jsse.jar;C:\java\1.4.= 1\jre\lib\jce.jar;C:\java\1.4.1\jre\lib\charsets.jar;C:\java\1.4.1\jre\clas= ses, java.vendor=3DSun Microsystems Inc., file.separator=3D\, hibernate.ses= sion_factory_name=3Djava:comp/env/hibernate/SessionFactory, java.vendor.url= .bug=3Dhttp://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding= =3DUnicodeLittle, sun.cpu.endian=3Dlittle, hibernate.use_outer_join=3Dtrue,= dialect=3Dnet.sf.hibernate.dialect.OracleDialect, sun.cpu.isalist=3Dpentiu= m i486 i386} 6562 INFO [main] cfg.Configuration - processing one-to-many association m= appings 6562 DEBUG [main] cfg.Binder - Second pass for collection: test.hibernate.= Test.testComponent.attrMap 6582 DEBUG [main] cfg.Binder - Mapped collection key: OBJECT_ID, index: AT= TR_NAME, element: ATTR_VALUE, type: string 6582 INFO [main] cfg.Configuration - processing one-to-one association pr= operty references 6582 INFO [main] cfg.Configuration - processing foreign key constraints 6582 DEBUG [main] cfg.Configuration - resolving reference to class: test.h= ibernate.Test 6822 INFO [main] dialect.Dialect - Using dialect: net.sf.hibernate.dialec= t.OracleDialect 6842 INFO [main] cfg.SettingsFactory - Use outer join fetching: true 6872 WARN [main] connection.UserSuppliedConnectionProvider - No connectio= n properties specified - the user must supply JDBC connections 6952 INFO [main] transaction.TransactionManagerLookupFactory - No Transac= tionManagerLookup configured (in JTA environment, use of process level read= -write cache is not recommended) 6952 INFO [main] cfg.SettingsFactory - Use scrollable result sets: false 6962 INFO [main] cfg.SettingsFactory - JDBC 2 max batch size: 15 6962 INFO [main] cfg.SettingsFactory - echoing all SQL to stdout 6962 INFO [main] cfg.SettingsFactory - Query language substitutions: {} 6962 INFO [main] cfg.SettingsFactory - cache provider: net.sf.hibernate.c= ache.JCSCacheProvider 7002 INFO [main] cfg.Configuration - instantiating and configuring caches 7233 INFO [main] impl.SessionFactoryImpl - building session factory 7243 DEBUG [main] impl.SessionFactoryImpl - instantiating session factory = with properties: {java.runtime.name=3DJava(TM) 2 Runtime Environment, Stand= ard Edition, sun.boot.library.path=3DC:\java\1.4.1\jre\bin, java.vm.version= =3D1.4.1_02-b06, java.vm.vendor=3DSun Microsystems Inc., java.vendor.url=3D= http://java.sun.com/, path.separator=3D;, java.vm.name=3DJava HotSpot(TM) C= lient VM, file.encoding.pkg=3Dsun.io, use_outer_join=3Dtrue, user.country= =3DUS, sun.os.patch.level=3DService Pack 4, java.vm.specification.name=3DJa= va Virtual Machine Specification, user.dir=3DC:\teams\test, java.runtime.ve= rsion=3D1.4.1_02-b06, java.awt.graphicsenv=3Dsun.awt.Win32GraphicsEnvironme= nt, java.endorsed.dirs=3DC:\java\1.4.1\jre\lib\endorsed, os.arch=3Dx86, jav= a.io.tmpdir=3DC:\DOCUME~1\jeitzman\LOCALS~1\Temp\, line.separator=3D , java.vm.specification.vendor=3DSun Microsystems Inc., user.variant=3D, os= .name=3DWindows 2000, sun.java2d.fontpath=3D, java.library.path=3DC:\java\1= .4.1\bin;.;C:\winnt\system32;C:\winnt;C:\Perl\bin\;C:\cm\bin;C:\bin;C:\orac= le\ora90\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\winnt\system32;C:\win= nt;C:\PVCS\DIMENS~1\7.1\PROG;C:\winnt\System32\Wbem;c:\java\1.4.1\bin;C:\ja= va\apache-ant-1.5.3-1\bin, java.specification.name=3DJava Platform API Spec= ification, java.class.version=3D48.0, java.util.prefs.PreferencesFactory=3D= java.util.prefs.WindowsPreferencesFactory, os.version=3D5.0, user.home=3DC:= \Documents and Settings\jeitzman, user.timezone=3D, java.awt.printerjob=3Ds= un.awt.windows.WPrinterJob, file.encoding=3DCp1252, java.specification.vers= ion=3D1.4, show_sql=3Dtrue, user.name=3Djeitzman, java.class.path=3DC:\team= s\test\classes;C:\teams\common\classes;C:\teams\common\lib\commons-collecti= ons.jar;C:\teams\common\lib\log4j.jar;C:\teams\common\lib\commons-pool.jar;= C:\teams\common\lib\commons-dbcp.jar;C:\teams\common\lib\commons-lang-2.0.j= ar;C:\java\lib\classes12.jar;C:\teams\sdk\classes;C:\teams\sdk\lib\vbjorb.j= ar;C:\teams\sdk\lib\activation.jar;C:\teams\sdk\lib\jhelp.jar;C:\teams\sdk\= lib\mail.jar;C:\teams\sdk\lib\swingall.jar;C:\teams\sdk\lib\xerces.jar;C:\t= eams\sdk\lib\Regexp.jar;C:\teams\sdk\lib\xml4j_2_0_15.jar;C:\teams\sdk\lib\= Ftp.jar;C:\teams\sdk\lib\vbjapp.jar;C:\java\jboss-3.2.2RC4\client\jboss-j2e= e.jar;C:\java\commons-lang-2.0\commons-lang-2.0.jar;C:\teams\sdk\lib\JConfi= g.zip;C:\teams\sdk\lib\classes12.zip;C:\teams\server\classes;C:\teams\serve= r\lib\activation.jar;C:\teams\server\lib\xml4j_2_0_15.jar;C:\teams\server\l= ib\FPLibrary.jar;C:\teams\server\lib\vbjorb.jar;C:\teams\server\lib\Regexp.= jar;C:\teams\server\lib\mail.jar;C:\teams\server\lib\vbjapp.jar;C:\java\hib= ernate-2.1\hibernate2.jar;C:\java\hibernate-2.1\lib\dom4j.jar;C:\java\hiber= nate-2.1\lib\cglib-asm.jar;C:\java\hibernate-2.1\lib\commons-lang.jar;C:\ja= va\hibernate-2.1\lib\commons-logging.jar;C:\java\hibernate-2.1\lib\odmg.jar= , hibernate.show_sql=3Dtrue, java.vm.specification.version=3D1.0, java.home= =3DC:\java\1.4.1\jre, sun.arch.data.model=3D32, hibernate.dialect=3Dnet.sf.= hibernate.dialect.OracleDialect, user.language=3Den, java.specification.ven= dor=3DSun Microsystems Inc., awt.toolkit=3Dsun.awt.windows.WToolkit, hibern= ate.cglib.use_reflection_optimizer=3Dtrue, java.vm.info=3Dmixed mode, java.= version=3D1.4.1_02, java.ext.dirs=3DC:\java\1.4.1\jre\lib\ext, sun.boot.cla= ss.path=3DC:\java\1.4.1\jre\lib\rt.jar;C:\java\1.4.1\jre\lib\i18n.jar;C:\ja= va\1.4.1\jre\lib\sunrsasign.jar;C:\java\1.4.1\jre\lib\jsse.jar;C:\java\1.4.= 1\jre\lib\jce.jar;C:\java\1.4.1\jre\lib\charsets.jar;C:\java\1.4.1\jre\clas= ses, java.vendor=3DSun Microsystems Inc., file.separator=3D\, hibernate.ses= sion_factory_name=3Djava:comp/env/hibernate/SessionFactory, java.vendor.url= .bug=3Dhttp://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding= =3DUnicodeLittle, sun.cpu.endian=3Dlittle, hibernate.use_outer_join=3Dtrue,= dialect=3Dnet.sf.hibernate.dialect.OracleDialect, sun.cpu.isalist=3Dpentiu= m i486 i386} 9527 DEBUG [main] impl.SessionFactoryObjectFactory - initializing class Se= ssionFactoryObjectFactory 9557 DEBUG [main] impl.SessionFactoryObjectFactory - registered: 8a81814ef= 8dafdab00f8dafdb4a80000 (java:comp/env/hibernate/SessionFactory) 9567 INFO [main] impl.SessionFactoryObjectFactory - Factory name: java:co= mp/env/hibernate/SessionFactory 9577 INFO [main] util.NamingHelper - JNDI InitialContext properties:{} 9597 DEBUG [main] util.NamingHelper - binding: java:comp/env/hibernate/Ses= sionFactory 9627 WARN [main] impl.SessionFactoryObjectFactory - Could not bind factor= y to JNDI javax.naming.NoInitialContextException: Need to specify class name in envir= onment or system property, or as an applet parameter, or in an application = resource file: java.naming.factory.initial =09at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6= 40) =09at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243= ) =09at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav= a:280) =09at javax.naming.InitialContext.getNameParser(InitialContext.java:429) =09at net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:52) =09at net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(Session= FactoryObjectFactory.java:90) =09at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja= va:171) =09at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.= java:718) =09at test.hibernate.Test.main(Test.java:31) 9657 DEBUG [main] impl.SessionFactoryImpl - instantiated session factory 11360 DEBUG [main] impl.SessionImpl - opened session 16338 DEBUG [main] impl.SessionImpl - find by criteria: [net.sf.hibernate.i= mpl.CriteriaImpl$CriterionEntry@1759d12] 16348 DEBUG [main] impl.SessionImpl - flushing session 16359 DEBUG [main] impl.SessionImpl - Flushing entities and processing refe= renced collections 16359 DEBUG [main] impl.SessionImpl - Processing unreferenced collections 16359 DEBUG [main] impl.SessionImpl - Scheduling collection removes/(re)cre= ates/updates 16359 DEBUG [main] impl.SessionImpl - Flushed: 0 insertions, 0 updates, 0 d= eletions to 0 objects 16359 DEBUG [main] impl.SessionImpl - Flushed: 0 (re)creations, 0 updates, = 0 removals to 0 collections 16449 DEBUG [main] impl.SessionImpl - Dont need to execute flush 16479 DEBUG [main] impl.BatcherImpl - about to open: 0 open PreparedStateme= nts, 0 open ResultSets 16479 DEBUG [main] impl.BatcherImpl - prepared statement get: select this.O= BJECT_ID as OBJECT_ID0_ from OBJECT_STACKS this, CONTENT_OBJECT_STORAGE_ATT= R attrmap1_ where this.OBJECT_ID in (?) and this.OBJECT_ID=3Dattrmap1_.OBJE= CT_ID(+) Hibernate: select this.OBJECT_ID as OBJECT_ID0_ from OBJECT_STACKS this, CO= NTENT_OBJECT_STORAGE_ATTR attrmap1_ where this.OBJECT_ID in (?) and this.OB= JECT_ID=3Dattrmap1_.OBJECT_ID(+) 16489 DEBUG [main] impl.BatcherImpl - preparing statement 16599 DEBUG [main] type.StringType - binding 'e6656575d7c572592316a2d41bbc4= f0a68a7140f' to parameter: 1 16649 DEBUG [main] loader.Loader - processing result set 16649 DEBUG [main] type.StringType - returning 'e6656575d7c572592316a2d41bb= c4f0a68a7140f' as column: OBJECT_ID0_ 16649 DEBUG [main] loader.Loader - result row: e6656575d7c572592316a2d41bbc= 4f0a68a7140f 16659 DEBUG [main] loader.Loader - Initializing object from ResultSet: e665= 6575d7c572592316a2d41bbc4f0a68a7140f 16669 DEBUG [main] loader.Loader - Hydrating entity: test.hibernate.Test#e6= 656575d7c572592316a2d41bbc4f0a68a7140f 16929 DEBUG [main] util.JDBCExceptionReporter - SQL Exception java.sql.SQLException: Invalid column name =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222) =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:285) =09at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.j= ava:5278) =09at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl= .java:698) =09at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:150= 5) =09at net.sf.hibernate.type.StringType.get(StringType.java:14) =09at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62) =09at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53) =09at net.sf.hibernate.collection.AbstractCollectionPersister.readKey(Abstr= actCollectionPersister.java:401) =09at net.sf.hibernate.loader.Loader.readCollectionElement(Loader.java:233) =09at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:195) =09at net.sf.hibernate.loader.Loader.doFind(Loader.java:111) =09at net.sf.hibernate.loader.Loader.find(Loader.java:731) =09at net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:109) =09at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3544) =09at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:177) =09at test.hibernate.Test.main(Test.java:39) 16940 WARN [main] util.JDBCExceptionReporter - SQL Error: 17006, SQLState:= null 16940 ERROR [main] util.JDBCExceptionReporter - Invalid column name 17000 DEBUG [main] impl.BatcherImpl - done closing: 0 open PreparedStatemen= ts, 0 open ResultSets 17010 DEBUG [main] impl.BatcherImpl - closing statement 17030 DEBUG [main] util.JDBCExceptionReporter - SQL Exception java.sql.SQLException: Invalid column name =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222) =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:285) =09at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.j= ava:5278) =09at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl= .java:698) =09at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:150= 5) =09at net.sf.hibernate.type.StringType.get(StringType.java:14) =09at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62) =09at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53) =09at net.sf.hibernate.collection.AbstractCollectionPersister.readKey(Abstr= actCollectionPersister.java:401) =09at net.sf.hibernate.loader.Loader.readCollectionElement(Loader.java:233) =09at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:195) =09at net.sf.hibernate.loader.Loader.doFind(Loader.java:111) =09at net.sf.hibernate.loader.Loader.find(Loader.java:731) =09at net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:109) =09at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3544) =09at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:177) =09at test.hibernate.Test.main(Test.java:39) 17040 WARN [main] util.JDBCExceptionReporter - SQL Error: 17006, SQLState:= null 17050 ERROR [main] util.JDBCExceptionReporter - Invalid column name 17050 ERROR [main] util.JDBCExceptionReporter - SQLException occurred java.sql.SQLException: Invalid column name =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222) =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:285) =09at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.j= ava:5278) =09at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl= .java:698) =09at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:150= 5) =09at net.sf.hibernate.type.StringType.get(StringType.java:14) =09at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62) =09at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53) =09at net.sf.hibernate.collection.AbstractCollectionPersister.readKey(Abstr= actCollectionPersister.java:401) =09at net.sf.hibernate.loader.Loader.readCollectionElement(Loader.java:233) =09at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:195) =09at net.sf.hibernate.loader.Loader.doFind(Loader.java:111) =09at net.sf.hibernate.loader.Loader.find(Loader.java:731) =09at net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:109) =09at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3544) =09at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:177) =09at test.hibernate.Test.main(Test.java:39) net.sf.hibernate.JDBCException: SQLException occurred =09at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3547) =09at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:177) =09at test.hibernate.Test.main(Test.java:39) Caused by: java.sql.SQLException: Invalid column name =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222) =09at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:285) =09at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.j= ava:5278) =09at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl= .java:698) =09at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:150= 5) =09at net.sf.hibernate.type.StringType.get(StringType.java:14) =09at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62) =09at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53) =09at net.sf.hibernate.collection.AbstractCollectionPersister.readKey(Abstr= actCollectionPersister.java:401) =09at net.sf.hibernate.loader.Loader.readCollectionElement(Loader.java:233) =09at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:195) =09at net.sf.hibernate.loader.Loader.doFind(Loader.java:111) =09at net.sf.hibernate.loader.Loader.find(Loader.java:731) =09at net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:109) =09at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3544) =09... 2 more Exception in thread "main"=20 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-470 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-470 Summary: SQL Exception using a Map within a component Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components:=20 core Versions: 2.1 beta 5 Assignee:=20 Reporter: James Eitzmann Created: Fri, 14 Nov 2003 10:17 AM Updated: Fri, 14 Nov 2003 10:18 AM Environment: nt 2000, oracle 8.1.7, 1.4.1 sdk Description: I have a map within a component. When I run a query, I get an SQL exception= : "Invalid Column Name". It appears that the SQL hibernate is generating is= not including the columns from the mapping table. This works fine in 2.0.3= . Mapping doc: <?xml version=3D"1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class=20 =09name=3D"test.hibernate.Test"=20 =09table=3D"OBJECT_STACKS" =09dynamic-update=3D"true" =09> =09<id name=3D"id" column=3D"OBJECT_ID" type=3D"string"> <generator class=3D"com.artesia.server.common.TeamsIdGenerator"/> </id> <component=20 name=3D"testComponent"=20 class=3D"test.hibernate.TestComponent" insert=3D"false" update=3D"true" > <map =09 name=3D"attrMap" =09 table=3D"CONTENT_OBJECT_STORAGE_ATTR" =09 outer-join=3D"true" =09 batch-size=3D"16" =09 > =09 <key column=3D"OBJECT_ID"/> =09 <index column=3D"ATTR_NAME" type=3D"string"/> =09 <element column=3D"ATTR_VALUE" type=3D"string"/> =09 </map> =09</component> </class> </hibernate-mapping> Code: package test.hibernate; import java.sql.Connection; import java.sql.DriverManager; import java.util.ArrayList; import java.util.List; import net.sf.hibernate.Criteria; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.expression.Expression; import oracle.jdbc.driver.OracleDriver; /** *=20 *=20 */ public class Test { private String _id; private TestComponent _testComponent; =20 =09public static void main(String[] args) throws Exception =09{ =09=09DriverManager.registerDriver(new OracleDriver()); =09=09Connection con =3D =09=09=09DriverManager.getConnection("jdbc:oracle:oci8:@j817", "j_adm", "j_= adm"); =09=09SessionFactory sf =3D new Configuration().configure().buildSessionFac= tory(); =09=09Session s =3D sf.openSession(con); =09=09ArrayList contentIdList =3D new ArrayList(1); =09=09contentIdList.add("e6656575d7c572592316a2d41bbc4f0a68a7140f"); =09=09Criteria c =3D s.createCriteria(Test.class); =09=09c.add(Expression.in("id", contentIdList)); =09=09List infoList =3D c.list(); =09} =20 =09/** =09 * @return Returns the id. =09 */ =09public String getId() =09{ =09=09return _id; =09} =09/** =09 * @param id The id to set. =09 */ =09public void setId(String id) =09{ =09=09_id =3D id; =09} =09/** =09 * @return Returns the testComponent. =09 */ =09public TestComponent getTestComponent() =09{ =09=09return _testComponent; =09} =09/** =09 * @param testComponent The testComponent to set. =09 */ =09public void setTestComponent(TestComponent testComponent) =09{ =09=09_testComponent =3D testComponent; =09} } --------------------------------------------------------------------- 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-11-14 16:20:14
|
The following issue has been updated: Updater: James Eitzmann (mailto:jei...@ya...) Date: Fri, 14 Nov 2003 10:18 AM Changes: Attachment changed to test.hbm.xml --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-470&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-470 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-470 Summary: SQL Exception using a Map within a component Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: James Eitzmann Created: Fri, 14 Nov 2003 10:17 AM Updated: Fri, 14 Nov 2003 10:18 AM Environment: nt 2000, oracle 8.1.7, 1.4.1 sdk Description: I have a map within a component. When I run a query, I get an SQL exception: "Invalid Column Name". It appears that the SQL hibernate is generating is not including the columns from the mapping table. This works fine in 2.0.3. Mapping doc: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="test.hibernate.Test" table="OBJECT_STACKS" dynamic-update="true" > <id name="id" column="OBJECT_ID" type="string"> <generator class="com.artesia.server.common.TeamsIdGenerator"/> </id> <component name="testComponent" class="test.hibernate.TestComponent" insert="false" update="true" > <map name="attrMap" table="CONTENT_OBJECT_STORAGE_ATTR" outer-join="true" batch-size="16" > <key column="OBJECT_ID"/> <index column="ATTR_NAME" type="string"/> <element column="ATTR_VALUE" type="string"/> </map> </component> </class> </hibernate-mapping> Code: package test.hibernate; import java.sql.Connection; import java.sql.DriverManager; import java.util.ArrayList; import java.util.List; import net.sf.hibernate.Criteria; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.expression.Expression; import oracle.jdbc.driver.OracleDriver; /** * * */ public class Test { private String _id; private TestComponent _testComponent; public static void main(String[] args) throws Exception { DriverManager.registerDriver(new OracleDriver()); Connection con = DriverManager.getConnection("jdbc:oracle:oci8:@j817", "j_adm", "j_adm"); SessionFactory sf = new Configuration().configure().buildSessionFactory(); Session s = sf.openSession(con); ArrayList contentIdList = new ArrayList(1); contentIdList.add("e6656575d7c572592316a2d41bbc4f0a68a7140f"); Criteria c = s.createCriteria(Test.class); c.add(Expression.in("id", contentIdList)); List infoList = c.list(); } /** * @return Returns the id. */ public String getId() { return _id; } /** * @param id The id to set. */ public void setId(String id) { _id = id; } /** * @return Returns the testComponent. */ public TestComponent getTestComponent() { return _testComponent; } /** * @param testComponent The testComponent to set. */ public void setTestComponent(TestComponent testComponent) { _testComponent = testComponent; } } --------------------------------------------------------------------- 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-11-14 16:20:14
|
The following issue has been updated: Updater: James Eitzmann (mailto:jei...@ya...) Date: Fri, 14 Nov 2003 10:18 AM Changes: Attachment changed to TestComponent.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-470&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-470 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-470 Summary: SQL Exception using a Map within a component Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: James Eitzmann Created: Fri, 14 Nov 2003 10:17 AM Updated: Fri, 14 Nov 2003 10:18 AM Environment: nt 2000, oracle 8.1.7, 1.4.1 sdk Description: I have a map within a component. When I run a query, I get an SQL exception: "Invalid Column Name". It appears that the SQL hibernate is generating is not including the columns from the mapping table. This works fine in 2.0.3. Mapping doc: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="test.hibernate.Test" table="OBJECT_STACKS" dynamic-update="true" > <id name="id" column="OBJECT_ID" type="string"> <generator class="com.artesia.server.common.TeamsIdGenerator"/> </id> <component name="testComponent" class="test.hibernate.TestComponent" insert="false" update="true" > <map name="attrMap" table="CONTENT_OBJECT_STORAGE_ATTR" outer-join="true" batch-size="16" > <key column="OBJECT_ID"/> <index column="ATTR_NAME" type="string"/> <element column="ATTR_VALUE" type="string"/> </map> </component> </class> </hibernate-mapping> Code: package test.hibernate; import java.sql.Connection; import java.sql.DriverManager; import java.util.ArrayList; import java.util.List; import net.sf.hibernate.Criteria; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.expression.Expression; import oracle.jdbc.driver.OracleDriver; /** * * */ public class Test { private String _id; private TestComponent _testComponent; public static void main(String[] args) throws Exception { DriverManager.registerDriver(new OracleDriver()); Connection con = DriverManager.getConnection("jdbc:oracle:oci8:@j817", "j_adm", "j_adm"); SessionFactory sf = new Configuration().configure().buildSessionFactory(); Session s = sf.openSession(con); ArrayList contentIdList = new ArrayList(1); contentIdList.add("e6656575d7c572592316a2d41bbc4f0a68a7140f"); Criteria c = s.createCriteria(Test.class); c.add(Expression.in("id", contentIdList)); List infoList = c.list(); } /** * @return Returns the id. */ public String getId() { return _id; } /** * @param id The id to set. */ public void setId(String id) { _id = id; } /** * @return Returns the testComponent. */ public TestComponent getTestComponent() { return _testComponent; } /** * @param testComponent The testComponent to set. */ public void setTestComponent(TestComponent testComponent) { _testComponent = testComponent; } } --------------------------------------------------------------------- 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 |