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-09-23 13:30:57
|
The following comment has been added to this issue:
Author: Christopher D Riccio
Created: Tue, 23 Sep 2003 8:30 AM
Body:
Max,
Thanks for the info. I will do what I can to add this in, but I'm not too familiar with the code quite yet and time is an issue for me as well. What I built is working for us for now, so I will continue to use it and if/when I have time, I will try to integrate it into Hibernate the way you asked.
If you get a chance to do it though, please do as i'm not sure when i will get around to it.
Thanks a lot,
Chris
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-348
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-348
Summary: Pulling Named Native Sql Queries from an xml file
Type: New Feature
Status: Assigned
Priority: Minor
Project: Hibernate2
Assignee: Max Rydahl Andersen
Reporter: Christopher D Riccio
Created: Fri, 19 Sep 2003 7:09 AM
Updated: Fri, 19 Sep 2003 1:53 PM
Environment: Currently using Hibernate 2.1 B3
Description:
This is my first time doing something like this so please bare with me. I will attach my code after creation of this issue.
I built 2 classes that handle the pulling of named sql queries. I modeled the namedQueries.xml file after the example on the Hibernate Road Map.
I tried to model my code after what was in the Configuration class that was written by Gavin. I also put in all the same versions of configure() that are in Configuration.
Currently I have not actually integrated the code into my version of Hibernate. I noticed that Hibernate's JCASessionImpl class has a getNamedQuery( String ). I'm not sure if this was created for the purpose, but I tried to follow along to what that is then put a "queryManager" Map in where I had my SessionFactory after creation. To load the query I would just do something like this...
NamedQuery nQuery = getNamedQuery( queryName );
Query query = session.createSQLQuery( nQuery.getQuery(), nQuery.getAliases(), nQuery.getClasses() );
There are 2 classes, NamedQuery which after looking at will be pretty self explanatory and NamedQueryConfiguration. When I was looking for code to model after in Hibernate, Configuration was the first thing to come to mind since it also loaded an xml file, so I tried to use all the same naming conventions, and even comments, as it did.
Biggest difference, NamedQueryConfiguration returns a Map. The Map contains key - value pairs of queryName - NamedQuery. This way, after the NamedQueryConfiguration.configure() is called, then the map can just be set in the JCASessionImpl. Then call getNamedQuery and let it do the small code snippet above.
I hope this all makes sense and isn't overkill on the information. Please let me know if there is any code or that needs to be changed based on naming, exception handling and any other coding standards.
Thanx,
Christopher D Riccio
---------------------------------------------------------------------
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-09-23 09:32:01
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-355 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-355 Summary: only save the explicitly mentioned object during flush Type: New Feature Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0.2 Assignee: Reporter: jason zhang Created: Tue, 23 Sep 2003 4:31 AM Updated: Tue, 23 Sep 2003 4:31 AM Description: When the session is commit, hibernate does a dirty check on every object in the session cache. Although it is claimed that the dirty check is effecient, it costs more than 1 second somtime to dirty check 600 objects in session in my system. I tried various of performance tuning, but no luck. I'd rather to see the dirty check behavior can be turned on or off through a configuration parameter or session attribute. For example, if I set the hibernate.dirtyCheck=false in hibernate.cfg.xml, the hibernate would not check the objects in session cache, but only perform persistence for the objects which user metioned explicitly through session.save(), session.update(), session.saveOrUpdate() and session.delete(), and the objects that are cascaded from these objects. If given appropriate instruction/direction, I would like to implement this feature. jason --------------------------------------------------------------------- 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-09-22 22:59:54
|
The following comment has been added to this issue:
Author: John Kristian
Created: Mon, 22 Sep 2003 5:59 PM
Body:
A discussion of this problem occurred in http://sourceforge.net/forum/forum.php?thread_id=883135&forum_id=128638
I'm now getting satisfactory performance with a current version of JCS, *if* I configure log4j thus (from log4j.xml):
<root><priority value ="INFO"/>. I guess this means JCS spends a lot of time constructing DEBUG messages if log.isDebugEnabled().
You can get a copy of the JCS source code I'm using, by executing:
> cvs -d ":pserver:an...@cv...:/home/cvspublic" login
> cvs -d ":pserver:an...@cv...:/home/cvspublic" -z3 co -D 2003-09-19 jakarta-turbine-jcs
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-148
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-148
Summary: Old JCS jar is faster than new one (?)
Type: Task
Status: Assigned
Priority: Major
Project: Hibernate2
Versions:
2.0.1
Assignee: Gavin King
Reporter: Gavin King
Created: Fri, 20 Jun 2003 10:30 PM
Updated: Fri, 20 Jun 2003 10:30 PM
Description:
A user reported that the build of JCS that ships with Hibernate2 is MUCH slower than the earlier build that we were using.
We need to verify this and find out why....
---------------------------------------------------------------------
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-09-22 18:43:55
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-354 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-354 Summary: java.lang.AbstractMethodError Exception during startup using Hibernate 2.1b3 Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Versions: 2.1 beta 3 Assignee: Reporter: Rich Lahnum Created: Mon, 22 Sep 2003 1:43 PM Updated: Mon, 22 Sep 2003 1:43 PM Environment: WebSphere 5 under Win2k Description: It appears that AbstractEntityPersister does not implement Loadable.getTableName(). If I insert a dummy implementation the app will start. [9/22/03 13:27:02:585 CDT] 5e254dcc WebGroup E SRVE0020E: [Servlet Error]-[action]: Failed to load servlet: java.lang.AbstractMethodError: net/sf/hibernate/persister/AbstractEntityPersister.getTableName at net.sf.hibernate.loader.OuterJoinLoader.walkAssociationTree(OuterJoinLoader.java:447) at net.sf.hibernate.loader.OuterJoinLoader.walkAssociationTree(OuterJoinLoader.java:183) at net.sf.hibernate.loader.OuterJoinLoader.walkClassTree(OuterJoinLoader.java:214) at net.sf.hibernate.loader.OuterJoinLoader.walkTree(OuterJoinLoader.java:86) at net.sf.hibernate.loader.OneToManyLoader.<init>(OneToManyLoader.java:54) at net.sf.hibernate.loader.OneToManyLoader.<init>(OneToManyLoader.java:39) at net.sf.hibernate.collection.CollectionPersister.createCollectionInitializer(CollectionPersister.java:324) at net.sf.hibernate.collection.CollectionPersister.<init>(CollectionPersister.java:297) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:138) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:660) at us.il.state.idpa.oigcase.controller.OIGPlugin.init(OIGPlugin.java:128) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147) at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113) at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:903) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:266) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:583) at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1252) at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:274) at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:345) at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:208) at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:968) at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:133) at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:397) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:751) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:347) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:539) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:250) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:228) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:524) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:415) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:524) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:415) at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182) at com.ibm.ws.runtime.WsServer.start(WsServer.java:131) at com.ibm.ws.runtime.WsServer.main(WsServer.java:228) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94) at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97) --------------------------------------------------------------------- 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-09-22 17:59:56
|
The following issue has been updated:
Updater: Christopher D Riccio (mailto:cr...@cl...)
Date: Mon, 22 Sep 2003 12:59 PM
Changes:
Attachment changed to Tester.zip
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-353&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-353
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-353
Summary: query.setProperty( Object ) assumes HQL
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.1
Assignee:
Reporter: Christopher D Riccio
Created: Mon, 22 Sep 2003 12:58 PM
Updated: Mon, 22 Sep 2003 12:59 PM
Environment: DB2 Database
Description:
Here's what I have.
QUERY
select {d.*}
from department {d}
where {d}.deptno = :deptno
passing in an object (Department) which has a
private String deptno;
on it.
Getting the following Exception:
net.sf.hibernate.QueryException: in expected: {d} [select {d.*}
from department {d}
where {d}.deptno = :deptno]
{d} is defined in my query object.
When I do
Query.setString( "deptno", department.getDeptno() );
The query executes correctly.
After looking deeper into this.
Seems as if it is handling the Native sql call as HQL.
The query dies after parsing "department."
it's expecting a class path, ( saw indexOf( '.' ) so I assume that is what was going on). Then it sets expectingIn to true. The next thing it sees is {d} and it chokes on it.
---------------------------------------------------------------------
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-09-22 17:59:54
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-353 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-353 Summary: query.setProperty( Object ) assumes HQL Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Christopher D Riccio Created: Mon, 22 Sep 2003 12:58 PM Updated: Mon, 22 Sep 2003 12:58 PM Environment: DB2 Database Description: Here's what I have. QUERY select {d.*} from department {d} where {d}.deptno = :deptno passing in an object (Department) which has a private String deptno; on it. Getting the following Exception: net.sf.hibernate.QueryException: in expected: {d} [select {d.*} from department {d} where {d}.deptno = :deptno] {d} is defined in my query object. When I do Query.setString( "deptno", department.getDeptno() ); The query executes correctly. After looking deeper into this. Seems as if it is handling the Native sql call as HQL. The query dies after parsing "department." it's expecting a class path, ( saw indexOf( '.' ) so I assume that is what was going on). Then it sets expectingIn to true. The next thing it sees is {d} and it chokes on it. --------------------------------------------------------------------- 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-09-22 16:43:57
|
Message:
The following issue has been re-assigned.
Assignee: Max Rydahl Andersen (mailto:xa...@xa...)
Assigner: Max Rydahl Andersen (mailto:xa...@xa...)
Date: Mon, 22 Sep 2003 11:43 AM
Comment:
this seems like something hbm2java have to do correctly according to what hibernate core expects
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-352
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-352
Summary: Method introsepction fails with certain class property names
Type: Bug
Status: Assigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.0.3
Assignee: Max Rydahl Andersen
Reporter: Tom Pierce
Created: Mon, 22 Sep 2003 11:24 AM
Updated: Mon, 22 Sep 2003 11:43 AM
Environment: JDK 1.4.0_01, Windows 2000, DB2 7.2
Description:
When you have a class that has a property with a name like "eMailTxtDesc", and a getter signature like "public java.lang.String getEMailTxtDesc()", Hibernate will report the following exception at runtime: "net.sf.hibernate.PropertyNotFoundException: Could not find a getter for eMailTxtDesc in class com.fritolay.sia.model.TargtList".
I believe this is because the call to Introspector.decapitalize on line 242 of the ReflectHelper class doesn't actually decapitalize the "EMailTxtDesc" fragment. It is the same before and after the call. So, the test on line 244 fails.
I'm guessing my property name should actually be emailTxtDesc and the getter should be getEmailTxtDesc to be more bean-like. However, the mapping was autogenerated by Middlegen 2.0-b1 and the class files from the mappings were generated by hbm2java.
My work-around is to rename the property and the get/set pair.
---------------------------------------------------------------------
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-09-22 16:25:55
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-352 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-352 Summary: Method introsepction fails with certain class property names Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Reporter: Tom Pierce Created: Mon, 22 Sep 2003 11:24 AM Updated: Mon, 22 Sep 2003 11:24 AM Environment: JDK 1.4.0_01, Windows 2000, DB2 7.2 Description: When you have a class that has a property with a name like "eMailTxtDesc", and a getter signature like "public java.lang.String getEMailTxtDesc()", Hibernate will report the following exception at runtime: "net.sf.hibernate.PropertyNotFoundException: Could not find a getter for eMailTxtDesc in class com.fritolay.sia.model.TargtList". I believe this is because the call to Introspector.decapitalize on line 242 of the ReflectHelper class doesn't actually decapitalize the "EMailTxtDesc" fragment. It is the same before and after the call. So, the test on line 244 fails. I'm guessing my property name should actually be emailTxtDesc and the getter should be getEmailTxtDesc to be more bean-like. However, the mapping was autogenerated by Middlegen 2.0-b1 and the class files from the mappings were generated by hbm2java. My work-around is to rename the property and the get/set pair. --------------------------------------------------------------------- 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-09-21 15:46:54
|
The following issue has been updated:
Updater: David Morris (mailto:dmm...@ce...)
Date: Sun, 21 Sep 2003 10:46 AM
Comment:
JAXB Binding file
Changes:
Attachment changed to hibernate-mapping-2.0.xjb
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-351&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-351
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-351
Summary: Create schema to support mapping generation
Type: New Feature
Status: Unassigned
Priority: Minor
Project: Hibernate2
Assignee:
Reporter: David Morris
Created: Sun, 21 Sep 2003 10:24 AM
Updated: Sun, 21 Sep 2003 10:46 AM
Description:
Create a Schema to better support mappings. This would allow the use of tools like JAXB to work with mapping files.
---------------------------------------------------------------------
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-09-21 15:42:54
|
The following issue has been updated:
Updater: David Morris (mailto:dmm...@ce...)
Date: Sun, 21 Sep 2003 10:42 AM
Comment:
Here is an initial cut at a mapping schema.
Changes:
Attachment changed to hibernate-mapping-2.0.xsd
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-351&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-351
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-351
Summary: Create schema to support mapping generation
Type: New Feature
Status: Unassigned
Priority: Minor
Project: Hibernate2
Assignee:
Reporter: David Morris
Created: Sun, 21 Sep 2003 10:24 AM
Updated: Sun, 21 Sep 2003 10:42 AM
Description:
Create a Schema to better support mappings. This would allow the use of tools like JAXB to work with mapping files.
---------------------------------------------------------------------
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-09-21 15:24:54
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-351 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-351 Summary: Create schema to support mapping generation Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Assignee: Reporter: David Morris Created: Sun, 21 Sep 2003 10:24 AM Updated: Sun, 21 Sep 2003 10:24 AM Description: Create a Schema to better support mappings. This would allow the use of tools like JAXB to work with mapping files. --------------------------------------------------------------------- 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-09-21 14:47:54
|
The following issue has been updated:
Updater: Krzysztof Dabrowski (mailto:br...@el...)
Date: Sun, 21 Sep 2003 9:46 AM
Comment:
ItemFolder mapping just in case.
Changes:
Attachment changed to ItemFolder.hbm.xml
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-350&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-350
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-350
Summary: Mysql dialect produced sql subquery.
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.0.3
Assignee:
Reporter: Krzysztof Dabrowski
Created: Sun, 21 Sep 2003 9:43 AM
Updated: Sun, 21 Sep 2003 9:46 AM
Environment: Resin 2.1.10, Mysql 4.0.15 InnoDb
Description:
I've created the following hql query:
"from itm in class pl.elysium.boxlife.hibernate.Item where size(itm.ItemFolders)=0"
Ant this query produced the following SQL:
"select itm.itm_id as x0_0_ from item itm where ((select count(*) from item_itemfolder_binding itemfold0_ where itm.itm_id=itemfold0_.itm_id)=0 )"
As you probably now, MySQL does not have subselects so it producted the following error:
"ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select count(*) from item_itemfolder_binding itemfold0_ where i"
Shouldn't it rather use other methods to perform the size() in case of Mysql dialect?
---------------------------------------------------------------------
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-09-21 14:46:21
|
The following issue has been updated:
Updater: Krzysztof Dabrowski (mailto:br...@el...)
Date: Sun, 21 Sep 2003 9:45 AM
Comment:
My Hibernate config.
Changes:
Attachment changed to hibernate.cfg.xml
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-350&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-350
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-350
Summary: Mysql dialect produced sql subquery.
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.0.3
Assignee:
Reporter: Krzysztof Dabrowski
Created: Sun, 21 Sep 2003 9:43 AM
Updated: Sun, 21 Sep 2003 9:45 AM
Environment: Resin 2.1.10, Mysql 4.0.15 InnoDb
Description:
I've created the following hql query:
"from itm in class pl.elysium.boxlife.hibernate.Item where size(itm.ItemFolders)=0"
Ant this query produced the following SQL:
"select itm.itm_id as x0_0_ from item itm where ((select count(*) from item_itemfolder_binding itemfold0_ where itm.itm_id=itemfold0_.itm_id)=0 )"
As you probably now, MySQL does not have subselects so it producted the following error:
"ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select count(*) from item_itemfolder_binding itemfold0_ where i"
Shouldn't it rather use other methods to perform the size() in case of Mysql dialect?
---------------------------------------------------------------------
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-09-21 14:46:21
|
The following issue has been updated:
Updater: Krzysztof Dabrowski (mailto:br...@el...)
Date: Sun, 21 Sep 2003 9:45 AM
Comment:
Item mapping
Changes:
Attachment changed to Item.hbm.xml
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-350&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-350
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-350
Summary: Mysql dialect produced sql subquery.
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.0.3
Assignee:
Reporter: Krzysztof Dabrowski
Created: Sun, 21 Sep 2003 9:43 AM
Updated: Sun, 21 Sep 2003 9:45 AM
Environment: Resin 2.1.10, Mysql 4.0.15 InnoDb
Description:
I've created the following hql query:
"from itm in class pl.elysium.boxlife.hibernate.Item where size(itm.ItemFolders)=0"
Ant this query produced the following SQL:
"select itm.itm_id as x0_0_ from item itm where ((select count(*) from item_itemfolder_binding itemfold0_ where itm.itm_id=itemfold0_.itm_id)=0 )"
As you probably now, MySQL does not have subselects so it producted the following error:
"ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select count(*) from item_itemfolder_binding itemfold0_ where i"
Shouldn't it rather use other methods to perform the size() in case of Mysql dialect?
---------------------------------------------------------------------
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-09-21 14:43:55
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-350 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-350 Summary: Mysql dialect produced sql subquery. Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Reporter: Krzysztof Dabrowski Created: Sun, 21 Sep 2003 9:43 AM Updated: Sun, 21 Sep 2003 9:43 AM Environment: Resin 2.1.10, Mysql 4.0.15 InnoDb Description: I've created the following hql query: "from itm in class pl.elysium.boxlife.hibernate.Item where size(itm.ItemFolders)=0" Ant this query produced the following SQL: "select itm.itm_id as x0_0_ from item itm where ((select count(*) from item_itemfolder_binding itemfold0_ where itm.itm_id=itemfold0_.itm_id)=0 )" As you probably now, MySQL does not have subselects so it producted the following error: "ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select count(*) from item_itemfolder_binding itemfold0_ where i" Shouldn't it rather use other methods to perform the size() in case of Mysql dialect? --------------------------------------------------------------------- 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-09-19 20:26:47
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-349 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-349 Summary: NullPointerException in SessionImpl.connect under jboss Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Versions: 2.1 beta 3 Assignee: Reporter: toby cabot Created: Fri, 19 Sep 2003 12:58 PM Updated: Fri, 19 Sep 2003 12:58 PM Environment: win2k, jboss 3.2.1, sun vm 1.4.1-b21 Description: Thanks for Hibernate, it's very nice. I'm using the version labelled "2.1beta3b" from sourceforge. I get a NullPointerException under jboss when I try to use a session where Hibernate got the connection from a DataSource. Hibernate 2.0 works fine, and 2.1beta3b works fine in a standalone JVM. My code is: Session s = hFactory.openSession(); Query q = s.createQuery("from com.nlg.dps.teo.booking.db.ItineraryLineItem as ili where ili.booking=:id and ili.origin!=ili.destination"); q.setProperties(key); List lineItems = q.list(); <-- crash site Stack trace: 11:14:13,280 DEBUG [BatcherImpl] about to open: 0 open PreparedStatements, 0 open ResultSets 11:14:13,280 ERROR [STDERR] com.nlg.dps.tpl.mgt.PostBookingManagerException: Exception while trying to retrieve booking 6 11:14:13,280 ERROR [STDERR] at com.nlg.dps.tpl.mgt.ejb.PostBookingManagerHibernate.getAirDetails(PostBookingManagerHibernate.java:665) 11:14:13,280 ERROR [STDERR] at com.nlg.dps.tpl.mgt.ejb.PostBookingManagerEJB.getAirDetails(PostBookingManagerEJB.java:119) 11:14:13,280 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:14:13,280 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 11:14:13,280 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 11:14:13,280 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629) 11:14:13,280 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:273) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:674) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:353) 11:14:13,280 ERROR [STDERR] at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83) 11:14:13,280 ERROR [STDERR] at $Proxy466.getAirDetails(Unknown Source) 11:14:13,280 ERROR [STDERR] at com.nlg.dps.operationsui.businessdelegates.BookingBusinessDelegate.getAirDetails(BookingBusinessDelegate.java:100) 11:14:13,280 ERROR [STDERR] at com.nlg.dps.operationsui.actions.RetrieveBookingFromMultipleAction.execute(RetrieveBookingFromMultipleAction.java:59) 11:14:13,280 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) 11:14:13,280 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) 11:14:13,280 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 11:14:13,280 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) 11:14:13,280 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 11:14:13,280 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 11:14:13,280 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) 11:14:13,280 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) 11:14:13,280 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) 11:14:13,280 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) 11:14:13,280 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507) 11:14:13,280 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1664) 11:14:13,280 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServer.java:863) 11:14:13,280 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:460) 11:14:13,280 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpConnection.java:775) 11:14:13,280 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939) 11:14:13,295 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792) 11:14:13,295 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201) 11:14:13,295 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) 11:14:13,295 ERROR [STDERR] at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455) 11:14:13,295 ERROR [STDERR] Caused by: net.sf.hibernate.TransactionException: could not register synchronization with JTA TransactionManager 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3175) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3155) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:60) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:559) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:167) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.loader.Loader.doFind(Loader.java:113) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.loader.Loader.find(Loader.java:736) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.hql.QueryTranslator.find(QueryTranslator.java:959) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1366) 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:41) 11:14:13,295 ERROR [STDERR] at com.nlg.dps.tpl.mgt.ejb.PostBookingManagerHibernate.lookupAirDetails(PostBookingManagerHibernate.java:705) 11:14:13,295 ERROR [STDERR] at com.nlg.dps.tpl.mgt.ejb.PostBookingManagerHibernate.lookupAirDetails(PostBookingManagerHibernate.java:682) 11:14:13,295 ERROR [STDERR] at com.nlg.dps.tpl.mgt.ejb.PostBookingManagerHibernate.getAirDetails(PostBookingManagerHibernate.java:661) 11:14:13,295 ERROR [STDERR] ... 41 more 11:14:13,295 ERROR [STDERR] Caused by: java.lang.NullPointerException 11:14:13,295 ERROR [STDERR] at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3171) 11:14:13,295 ERROR [STDERR] ... 53 more --------------------------------------------------------------------- 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-09-19 20:25:27
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-346 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-346 Summary: SchemaExport ignores user-specified unique index name Type: Bug Status: Unassigned Priority: Trivial Project: Hibernate2 Components: toolset Versions: 2.0.3 Assignee: Reporter: Robert Zhu Created: Thu, 18 Sep 2003 7:32 PM Updated: Thu, 18 Sep 2003 7:32 PM Environment: Any Description: > robertz wrote: I use SchemaExport to generate a mysql table called userandrole. The table has an internalId, which is the PK. It also has a unique key (index) comprising roleName and userName. The interesting thing is that this unique key generated for the table ignores the specified key name (key1). It uses the first column name of the composite key, ie, roleName. I am not sure if this is intentional or just a small bug in SchemaExport. Below is the Hibernate descriptor file. <?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="com.abcd.persist.UserAndRole" table="userandrole" dynamic-update="false" dynamic-insert="false" > <id name="internalId" column="internalId" type="java.lang.Long" > <generator class="native"> </generator> </id> <property name="roleName" type="java.lang.String" update="true" insert="true"> <column name="roleName" unique-key="key1" length="200" not-null="true"/> </property> <property name="userName" type="java.lang.String" update="true" insert="true"> <column name="userName" unique-key="key1" length="200" not-null="true"/> </property> <property name="creationDate" type="java.util.Calendar" update="true" insert="true" column="creationDate" /> </class> </hibernate-mapping> ------------------------------- > Christian Bauer replied: The unique constraint name should be "key1". Please open a new JIRA issue. --------------------------------------------------------------------- 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-09-19 20:23:30
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-347 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-347 Summary: Hibernate mask HTTP session Type: Bug Status: Unassigned Priority: Critical Project: Hibernate2 Versions: 2.0.3 Assignee: Reporter: Steve Dyer Created: Thu, 18 Sep 2003 7:54 PM Updated: Thu, 18 Sep 2003 7:54 PM Environment: Windows XP, Tomcat 4.1.24, Sun JVM 1.4.2 Description: private SessionFactory sessionFactory; private Session dbSession; do_get: HttpSession session = request.getSession(); session.setAttribute(blah1, "blah1"); -- set in HTTP session sessionFactory = new Configuration().configure().buildSessionFactory(); dbSession = sessionFactory.openSession(); session.setAttribute(blah2, "blah2"); -- not set in HTTP session --------------------------------------------------------------------- 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-09-19 20:23:04
|
The following comment has been added to this issue:
Author: Max Rydahl Andersen
Created: Fri, 19 Sep 2003 2:04 PM
Body:
...but i can see it's quite easy to extract the essentials of it...i'll try to embed it in hibernate (unless you beat me too it ;)
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-348
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-348
Summary: Pulling Named Native Sql Queries from an xml file
Type: New Feature
Status: Assigned
Priority: Minor
Project: Hibernate2
Assignee: Max Rydahl Andersen
Reporter: Christopher D Riccio
Created: Fri, 19 Sep 2003 7:09 AM
Updated: Fri, 19 Sep 2003 1:53 PM
Environment: Currently using Hibernate 2.1 B3
Description:
This is my first time doing something like this so please bare with me. I will attach my code after creation of this issue.
I built 2 classes that handle the pulling of named sql queries. I modeled the namedQueries.xml file after the example on the Hibernate Road Map.
I tried to model my code after what was in the Configuration class that was written by Gavin. I also put in all the same versions of configure() that are in Configuration.
Currently I have not actually integrated the code into my version of Hibernate. I noticed that Hibernate's JCASessionImpl class has a getNamedQuery( String ). I'm not sure if this was created for the purpose, but I tried to follow along to what that is then put a "queryManager" Map in where I had my SessionFactory after creation. To load the query I would just do something like this...
NamedQuery nQuery = getNamedQuery( queryName );
Query query = session.createSQLQuery( nQuery.getQuery(), nQuery.getAliases(), nQuery.getClasses() );
There are 2 classes, NamedQuery which after looking at will be pretty self explanatory and NamedQueryConfiguration. When I was looking for code to model after in Hibernate, Configuration was the first thing to come to mind since it also loaded an xml file, so I tried to use all the same naming conventions, and even comments, as it did.
Biggest difference, NamedQueryConfiguration returns a Map. The Map contains key - value pairs of queryName - NamedQuery. This way, after the NamedQueryConfiguration.configure() is called, then the map can just be set in the JCASessionImpl. Then call getNamedQuery and let it do the small code snippet above.
I hope this all makes sense and isn't overkill on the information. Please let me know if there is any code or that needs to be changed based on naming, exception handling and any other coding standards.
Thanx,
Christopher D Riccio
---------------------------------------------------------------------
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-09-19 20:22:10
|
The following comment has been added to this issue:
Author: Steve Dyer
Created: Thu, 18 Sep 2003 8:10 PM
Body:
Close this. I am too embarassed to admit what the *real* problem was...
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-347
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-347
Summary: Hibernate mask HTTP session
Type: Bug
Status: Unassigned
Priority: Critical
Project: Hibernate2
Versions:
2.0.3
Assignee:
Reporter: Steve Dyer
Created: Thu, 18 Sep 2003 7:54 PM
Updated: Thu, 18 Sep 2003 7:54 PM
Environment: Windows XP, Tomcat 4.1.24, Sun JVM 1.4.2
Description:
private SessionFactory sessionFactory;
private Session dbSession;
do_get:
HttpSession session = request.getSession();
session.setAttribute(blah1, "blah1"); -- set in HTTP session
sessionFactory = new Configuration().configure().buildSessionFactory();
dbSession = sessionFactory.openSession();
session.setAttribute(blah2, "blah2"); -- not set in HTTP session
---------------------------------------------------------------------
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-09-19 20:19:30
|
Message: The following issue has been re-assigned. Assignee: Max Rydahl Andersen (mailto:xa...@xa...) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-348 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-348 Summary: Pulling Named Native Sql Queries from an xml file Type: New Feature Status: Assigned Priority: Minor Project: Hibernate2 Assignee: Max Rydahl Andersen Reporter: Christopher D Riccio Created: Fri, 19 Sep 2003 7:09 AM Updated: Fri, 19 Sep 2003 1:53 PM Environment: Currently using Hibernate 2.1 B3 Description: This is my first time doing something like this so please bare with me. I will attach my code after creation of this issue. I built 2 classes that handle the pulling of named sql queries. I modeled the namedQueries.xml file after the example on the Hibernate Road Map. I tried to model my code after what was in the Configuration class that was written by Gavin. I also put in all the same versions of configure() that are in Configuration. Currently I have not actually integrated the code into my version of Hibernate. I noticed that Hibernate's JCASessionImpl class has a getNamedQuery( String ). I'm not sure if this was created for the purpose, but I tried to follow along to what that is then put a "queryManager" Map in where I had my SessionFactory after creation. To load the query I would just do something like this... NamedQuery nQuery = getNamedQuery( queryName ); Query query = session.createSQLQuery( nQuery.getQuery(), nQuery.getAliases(), nQuery.getClasses() ); There are 2 classes, NamedQuery which after looking at will be pretty self explanatory and NamedQueryConfiguration. When I was looking for code to model after in Hibernate, Configuration was the first thing to come to mind since it also loaded an xml file, so I tried to use all the same naming conventions, and even comments, as it did. Biggest difference, NamedQueryConfiguration returns a Map. The Map contains key - value pairs of queryName - NamedQuery. This way, after the NamedQueryConfiguration.configure() is called, then the map can just be set in the JCASessionImpl. Then call getNamedQuery and let it do the small code snippet above. I hope this all makes sense and isn't overkill on the information. Please let me know if there is any code or that needs to be changed based on naming, exception handling and any other coding standards. Thanx, Christopher D Riccio --------------------------------------------------------------------- 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-09-19 20:16:44
|
The following comment has been added to this issue:
Author: Max Rydahl Andersen
Created: Fri, 19 Sep 2003 1:53 PM
Body:
ok - this stuff unfortunately does not fetch the sql from an hbm.xml file - that was the plan.
I'll have to turn it down, unless you can change it to load sql queries in a similar manner to the existing <query> tag in hbm.xml.
It should just be <sql-query> instead (as listed in the roadmap!)
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-348
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-348
Summary: Pulling Named Native Sql Queries from an xml file
Type: New Feature
Status: Unassigned
Priority: Minor
Project: Hibernate2
Assignee:
Reporter: Christopher D Riccio
Created: Fri, 19 Sep 2003 7:09 AM
Updated: Fri, 19 Sep 2003 7:17 AM
Environment: Currently using Hibernate 2.1 B3
Description:
This is my first time doing something like this so please bare with me. I will attach my code after creation of this issue.
I built 2 classes that handle the pulling of named sql queries. I modeled the namedQueries.xml file after the example on the Hibernate Road Map.
I tried to model my code after what was in the Configuration class that was written by Gavin. I also put in all the same versions of configure() that are in Configuration.
Currently I have not actually integrated the code into my version of Hibernate. I noticed that Hibernate's JCASessionImpl class has a getNamedQuery( String ). I'm not sure if this was created for the purpose, but I tried to follow along to what that is then put a "queryManager" Map in where I had my SessionFactory after creation. To load the query I would just do something like this...
NamedQuery nQuery = getNamedQuery( queryName );
Query query = session.createSQLQuery( nQuery.getQuery(), nQuery.getAliases(), nQuery.getClasses() );
There are 2 classes, NamedQuery which after looking at will be pretty self explanatory and NamedQueryConfiguration. When I was looking for code to model after in Hibernate, Configuration was the first thing to come to mind since it also loaded an xml file, so I tried to use all the same naming conventions, and even comments, as it did.
Biggest difference, NamedQueryConfiguration returns a Map. The Map contains key - value pairs of queryName - NamedQuery. This way, after the NamedQueryConfiguration.configure() is called, then the map can just be set in the JCASessionImpl. Then call getNamedQuery and let it do the small code snippet above.
I hope this all makes sense and isn't overkill on the information. Please let me know if there is any code or that needs to be changed based on naming, exception handling and any other coding standards.
Thanx,
Christopher D Riccio
---------------------------------------------------------------------
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-09-19 20:05:22
|
The following comment has been added to this issue:
Author: Ralf Taugerbeck
Created: Fri, 19 Sep 2003 4:00 AM
Body:
Disabling "auto connection cleanup" on a DataSource only works in a pure BMP scenario. If CMP is used connections are not returned to the connection pool anymore.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-337
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-337
Summary: Connections from DataSource + WebSphere
Type: Task
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.0 final
2.0.1
2.0.2
2.0.3
Assignee:
Reporter: Ralf Taugerbeck
Created: Tue, 16 Sep 2003 7:20 AM
Updated: Tue, 16 Sep 2003 7:20 AM
Environment: Hibernate configured with DataSources on WebSphere
Description:
Using Hibernate 2.0.x with Datasource connections on WebSphere (4.0, 5.0) the following error message occurs when closing a Hibernate Session:
net.sf.hibernate.util.JDBCExceptionReporter TRAS0014I: The following exception was logged com.ibm.websphere.ce.cm.StaleConnectionException: Connection is closed
WebSphere seems to close the connection after a UserTransaction#commit but Hibernate afterwards in SessionFactoryImpl#closeConnection tries to call #getWarnings on the closed connection which causes the above exception.
----
The behavior can be fixed by either checking for closed connections in SessionFactoryImpl#closeConnection or by configuring the data source to "Disable auto connection cleanup" (checkbox in the data source setup in Websphere) -> FAQ
---------------------------------------------------------------------
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-09-19 19:57:48
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-348 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-348 Summary: Pulling Named Native Sql Queries from an xml file Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Assignee: Reporter: Christopher D Riccio Created: Fri, 19 Sep 2003 7:09 AM Updated: Fri, 19 Sep 2003 7:09 AM Environment: Currently using Hibernate 2.1 B3 Description: This is my first time doing something like this so please bare with me. I will attach my code after creation of this issue. I built 2 classes that handle the pulling of named sql queries. I modeled the namedQueries.xml file after the example on the Hibernate Road Map. I tried to model my code after what was in the Configuration class that was written by Gavin. I also put in all the same versions of configure() that are in Configuration. Currently I have not actually integrated the code into my version of Hibernate. I noticed that Hibernate's JCASessionImpl class has a getNamedQuery( String ). I'm not sure if this was created for the purpose, but I tried to follow along to what that is then put a "queryManager" Map in where I had my SessionFactory after creation. To load the query I would just do something like this... NamedQuery nQuery = getNamedQuery( queryName ); Query query = session.createSQLQuery( nQuery.getQuery(), nQuery.getAliases(), nQuery.getClasses() ); There are 2 classes, NamedQuery which after looking at will be pretty self explanatory and NamedQueryConfiguration. When I was looking for code to model after in Hibernate, Configuration was the first thing to come to mind since it also loaded an xml file, so I tried to use all the same naming conventions, and even comments, as it did. Biggest difference, NamedQueryConfiguration returns a Map. The Map contains key - value pairs of queryName - NamedQuery. This way, after the NamedQueryConfiguration.configure() is called, then the map can just be set in the JCASessionImpl. Then call getNamedQuery and let it do the small code snippet above. I hope this all makes sense and isn't overkill on the information. Please let me know if there is any code or that needs to be changed based on naming, exception handling and any other coding standards. Thanx, Christopher D Riccio --------------------------------------------------------------------- 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-09-19 19:55:19
|
The following comment has been added to this issue:
Author: Max Rydahl Andersen
Created: Fri, 19 Sep 2003 2:16 PM
Body:
Yes - that's correct.
And the method on Session interface should be Query getNamedSQLQuery(String name);
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-348
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-348
Summary: Pulling Named Native Sql Queries from an xml file
Type: New Feature
Status: Assigned
Priority: Minor
Project: Hibernate2
Assignee: Max Rydahl Andersen
Reporter: Christopher D Riccio
Created: Fri, 19 Sep 2003 7:09 AM
Updated: Fri, 19 Sep 2003 1:53 PM
Environment: Currently using Hibernate 2.1 B3
Description:
This is my first time doing something like this so please bare with me. I will attach my code after creation of this issue.
I built 2 classes that handle the pulling of named sql queries. I modeled the namedQueries.xml file after the example on the Hibernate Road Map.
I tried to model my code after what was in the Configuration class that was written by Gavin. I also put in all the same versions of configure() that are in Configuration.
Currently I have not actually integrated the code into my version of Hibernate. I noticed that Hibernate's JCASessionImpl class has a getNamedQuery( String ). I'm not sure if this was created for the purpose, but I tried to follow along to what that is then put a "queryManager" Map in where I had my SessionFactory after creation. To load the query I would just do something like this...
NamedQuery nQuery = getNamedQuery( queryName );
Query query = session.createSQLQuery( nQuery.getQuery(), nQuery.getAliases(), nQuery.getClasses() );
There are 2 classes, NamedQuery which after looking at will be pretty self explanatory and NamedQueryConfiguration. When I was looking for code to model after in Hibernate, Configuration was the first thing to come to mind since it also loaded an xml file, so I tried to use all the same naming conventions, and even comments, as it did.
Biggest difference, NamedQueryConfiguration returns a Map. The Map contains key - value pairs of queryName - NamedQuery. This way, after the NamedQueryConfiguration.configure() is called, then the map can just be set in the JCASessionImpl. Then call getNamedQuery and let it do the small code snippet above.
I hope this all makes sense and isn't overkill on the information. Please let me know if there is any code or that needs to be changed based on naming, exception handling and any other coding standards.
Thanx,
Christopher D Riccio
---------------------------------------------------------------------
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
|