[Hibernate-JIRA] Created: (HBX-984) hibernate-console.xml file not found if editing configuration
by Eric Euerlings (JIRA)
hibernate-console.xml file not found if editing configuration
-------------------------------------------------------------
Key: HBX-984
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-984
Project: Hibernate Tools
Issue Type: Bug
Components: consoleconfiguration
Affects Versions: 3.2beta10
Environment: eclipse.buildId=I20070625-1500
java.version=1.5.0_07
java.vendor=Apple Computer, Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=de_DE
Command-line arguments: -os macosx -ws carbon -arch ppc -clean
derby / MySQL and PostGres Database
Reporter: Eric Euerlings
when trying to edit a configuration, the error message apears. Configuration is not updated. Futhermore saving of workspace is impossible.
Error Log:
org.hibernate.console.HibernateConsoleRuntimeException: Could not write state
at org.hibernate.console.KnownConfigurations.writeStateTo(KnownConfigurations.java:296)
at org.hibernate.eclipse.console.HibernateConsolePlugin.writeStateTo(HibernateConsolePlugin.java:240)
at org.hibernate.eclipse.console.HibernateConsoleSaveParticipant.saving(HibernateConsoleSaveParticipant.java:61)
at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:343)
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:160)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:163)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:982)
at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:44)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:/Users/eeuerlings/workspaceAktuell/.metadata/.plugins/org.hibernate.eclipse.console/hibernate-console.xml-1 (No such file or directory)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:245)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:278)
at org.hibernate.console.KnownConfigurations.writeXml(KnownConfigurations.java:313)
at org.hibernate.console.KnownConfigurations.writeStateTo(KnownConfigurations.java:290)
... 9 more
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[Hibernate-JIRA] Created: (ANN-652) @Length not working for embedded objects
by Dirk Lachowski (JIRA)
@Length not working for embedded objects
----------------------------------------
Key: ANN-652
URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-652
Project: Hibernate Annotations
Issue Type: Bug
Affects Versions: 3.2.0.ga
Environment: hibernate-annotations-3,2,0.GA, MaxDB 7.6.00.27/Linux
Reporter: Dirk Lachowski
Priority: Minor
When creating an @Embeddable with a @Length annotated field, the Length is ignored by the entity in which the @Embeddable is embedded.
Sample:
@Embeddable
public class Money {
...
@Length(min=1, max=3)
protected String getCurrencyName() {
return currencyName;
}
...
}
@Entity
@Configurable
public class SalesOrder {
...
@Embedded
@AttributeOverrides( {
@AttributeOverride(name="amount", column = @Column(name="amount") ),
@AttributeOverride(name="currencyName", column = @Column(name="currency") )
})
public Money getValue() {
return value;
}
...
}
The generated schema is as follows:
create table DDIC.vbak (
id fixed(19,0) not null,
creationDate timestamp null,
lastChangedDate timestamp null,
salesOrderTypeName varchar(6) null,
orderDate date null,
orderNumber varchar(10) null,
orderReference varchar(30) null,
schemaName varchar(10) null,
amount fixed(19,0) null,
currency varchar(255) null, <-- should be varchar(3)
editable boolean not null,
customer_id fixed(19,0) null,
dlvAddr_id fixed(19,0) null,
owner_id fixed(19,0) null,
pricelist_id fixed(19,0) null,
primary key (id)
);
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[Hibernate-JIRA] Created: (HBX-960) Missing bundle constraint with eclipse 3.3
by Christoph Mayerhofer (JIRA)
Missing bundle constraint with eclipse 3.3
------------------------------------------
Key: HBX-960
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-960
Project: Hibernate Tools
Issue Type: Bug
Components: eclipse
Affects Versions: 3.2beta9
Environment: Eclipse Version: 3.3.0, Build id: I20070625-1500
Hibernate-Tools 3.2.0-beta9
Reporter: Christoph Mayerhofer
I tried to use Hibernate-Tools with the new Eclipse 3.3. I downloaded the current release of Eclipse 3.3 (June 25, 2007, eclipse-SDK-3.3-win32) and installed Hibernate-Tools 3.2beta9. After starting Eclipse I noticed that no Eclipse-Views of Hibernate-Tools are available, but the Hibernate plugin is visible under the 'Product Configuration' window.
I have tried to manually start the org.eclipse.hibernate.mapper plugin with the osgi-console (I started eclipse with -console). I got the error message, that the org.eclipse.wst.xml plugin could not be located.
166 <<LAZY>> org.eclipse.wst.common.core_1.1.100.v200608220540
167 INSTALLED org.eclipse.wst.common.environment_1.0.100.v200608251934
168 INSTALLED org.eclipse.wst.common.frameworks_1.1.1.v200609132124
169 INSTALLED org.eclipse.wst.common.project.facet.core_1.1.1.v200608112156
170 INSTALLED org.eclipse.wst.common.project.facet.ui_1.1.1.v200608112156
171 <<LAZY>> org.eclipse.wst.common.ui_1.1.100.v200608221521
172 <<LAZY>> org.eclipse.wst.common.uriresolver_1.1.100.v200609200443
173 INSTALLED org.eclipse.wst.dtd.core_1.1.1.v200609210600
174 INSTALLED org.eclipse.wst.sse.core_1.1.100.v200609182120
175 INSTALLED org.eclipse.wst.sse.ui_1.0.200.v200609211325
176 INSTALLED org.eclipse.wst.validation_1.1.1.v200609132124
177 INSTALLED org.eclipse.wst.xml.core_1.1.1.v200609210600
178 RESOLVED org.apache.xerces_2.8.0.v200606131651
179 INSTALLED org.hibernate.eclipse.console_3.2.0.beta9a
180 ACTIVE org.hibernate.eclipse.help_3.2.0.beta9a
181 INSTALLED org.hibernate.eclipse.mapper_3.2.0.beta9a
182 ACTIVE org.hibernate.eclipse_3.2.0.beta9a
183 ACTIVE org.jboss.ide.eclipse.freemarker_1.0.0.Beta2
osgi> start org.hibernate.eclipse.mapper
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.wst.xml.core; bundle-version="0.0.0"
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Unknown Source)
osgi>
So I downloaded the current wtp-package from the WTP Project Site (http://europa-mirror1.eclipse.org/webtools/downloads/drops/R2.0/R-2.0-200...), installed it, and now it works.
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[Hibernate-JIRA] Created: (HBX-983) can not create POJOs file with ant and hbm2java tool
by Hai Nguyen (JIRA)
can not create POJOs file with ant and hbm2java tool
----------------------------------------------------
Key: HBX-983
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-983
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Affects Versions: 3.2beta10
Environment: Hibernate 3.2, MySQL 5.0
Reporter: Hai Nguyen
Attachments: error.zip, errorLog, Response.hbm.xml
When updating the design of database, which worked well with hbm2java and hbm2ddl, I got this issue :
Failed in building configuration when adding C:\Documents and Settings\Hai Nguyen\workspace\laisWebv0.4\src\cz\raynet\lais\Response.hbm.xml
[hibernatetool] org.hibernate.InvalidMappingException: Could not parse mapping document from file C:\Documents and Settings\Hai Nguyen\workspace\laisWebv0.4\src\cz\raynet\lais\Response.hbm.xml
[hibernatetool] org.hibernate.MappingException: class cz.raynet.lais.Response not found while looking for property: id
[hibernatetool] java.lang.ClassNotFoundException: cz.raynet.lais.Response
Here are somethign from verbose :
C:\Documents and Settings\Hai Nguyen\workspace\laisWebv0.4\build.xml:76: Failed in building configuration when adding C:\Documents and Settings\Hai Nguyen\workspace\laisWebv0.4\src\cz\raynet\lais\Response.hbm.xml
at org.hibernate.tool.ant.ConfigurationTask.addFile(ConfigurationTask.java:155)
at org.hibernate.tool.ant.ConfigurationTask.addMappings(ConfigurationTask.java:133)
at org.hibernate.tool.ant.ConfigurationTask.doConfiguration(ConfigurationTask.java:97)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:55)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:302)
at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:318)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at org.hibernate.tool.ant.Hbm2JavaExporterTask.configureExporter(Hbm2JavaExporterTask.java:34)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:186)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:706)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:457)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:230)
at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from file C:\Documents and Settings\Hai Nguyen\workspace\laisWebv0.4\src\cz\raynet\lais\Response.hbm.xml
at org.hibernate.cfg.Configuration.addFile(Configuration.java:319)
at org.hibernate.tool.ant.ConfigurationTask.addFile(ConfigurationTask.java:150)
... 27 more
Caused by: org.hibernate.MappingException: class cz.raynet.lais.Response not found while looking for property: id
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:74)
at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276)
at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:334)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
at org.hibernate.cfg.Configuration.add(Configuration.java:669)
at org.hibernate.cfg.Configuration.addFile(Configuration.java:309)
... 28 more
Caused by: java.lang.ClassNotFoundException: cz.raynet.lais.Response
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1166)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1107)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:70)
I use MyEclipse as the IDE, Hibernate Tools for Eclipse and Ant 3.2 beta10
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[Hibernate-JIRA] Created: (HSHARDS-44) Wrong sort algorithm for multiple sort fileds
by Aviad Lichtenstadt (JIRA)
Wrong sort algorithm for multiple sort fileds
---------------------------------------------
Key: HSHARDS-44
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-44
Project: Hibernate Shards
Issue Type: Bug
Components: strategy
Affects Versions: 3.0.0.Beta2
Reporter: Aviad Lichtenstadt
Assignee: Max Ross
Attachments: SortMultipleByMultipleOrders.txt, SortMultipleByMultipleOrdersTest.txt
Create a list of shuffled attributes when some of them are multiple such as:
1 aviad
1 mark
1 kobi
2 tom
2 john
sort the list by both orders:
ID and name.
The list will be sorted only by the last field
attached are junit path file to show the bug, and a fix (there is also a junit that shows the fix is wrong)
watch out that in the Junit test patch the test is called "testFailMultipleOrderings" and it will path only because i am using there "assertNotSame"
the fix is :
The OrderExitOperation class should hod a list of properties to sort by
and then the comparator should iterate over all the properties by their insert order
the comparator algorithm:
if the object are identical return 0;
else compare the properties
if the properties comparison returns 0 go to next property
else return the comparison
(the comparison should be multiplied by -1 in cases of descending order.)
I am also attaching a test to show this error, and its fix
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[Hibernate-JIRA] Created: (HBX-981) HBM2JAVA w/ ejb3=true does not generate @Version annotation
by Parker Whirlow (JIRA)
HBM2JAVA w/ ejb3=true does not generate @Version annotation
------------------------------------------------------------
Key: HBX-981
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-981
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Affects Versions: 3.2beta9
Environment: hibernate tools 3.2beta9
Reporter: Parker Whirlow
When using the HBM2JAVA tool with 'ejb3=true' to generate EJB annotations, the <version> hibernate mapping doesn't get mapped as a version @Version in the resulting java class. See below:
Mapping document:
<hibernate-mapping package="com.company.ejb3.entity">
<class name="Person" table="person">
<id column="id" length="22" name="id" type="string"></id>
<version type="timestamp" name="lastUpdateDT" column="update_dt" generated="never" unsaved-value="null" />
<property name="name" column="name" not-null="true" type="string" length="150" />
</hibernate-mapping>
Resulting Person.java snippet:
@Column(name="update_dt", nullable=false)
public Date getLastUpdateDT() {
return this.lastUpdateDT;
}
public void setLastUpdateDT(Date lastUpdateDT) {
this.lastUpdateDT = lastUpdateDT;
}
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[Hibernate-JIRA] Created: (HHH-2804) ID generator of type sequence gives Oracle syntax error
by Mikael Carlstedt (JIRA)
ID generator of type sequence gives Oracle syntax error
-------------------------------------------------------
Key: HHH-2804
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2804
Project: Hibernate3
Issue Type: Bug
Components: query-sql
Affects Versions: 3.2.5
Environment: Oracle 10g
Reporter: Mikael Carlstedt
Using an ID generator of type 'sequence' in the Hibernate mapping gives an Oracle syntax error when trying to save an object:
DEBUG - JDBCExceptionReporter.logExceptions(69) | could not get next sequence value [select nextval ('TEST.requests_seq')]
java.sql.SQLException: ORA-00923: FROM keyword not found where expected
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:579)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1894)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:831)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2496)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2840)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:536)
at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:75)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:99)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[Hibernate-JIRA] Commented: (HHH-1830) Error during parse query on MS SQL
by Matjaz Smolej (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1830?page=c... ]
Matjaz Smolej commented on HHH-1830:
------------------------------------
You are using HQL reserved words size and elements as property names. The problem still persists in 3.2.5.ga.
> Error during parse query on MS SQL
> ----------------------------------
>
> Key: HHH-1830
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1830
> Project: Hibernate3
> Issue Type: Bug
> Affects Versions: 3.1.2, 3.2.0.cr2
> Environment: Microsoft SQL Server 2000, Windows XP, JDK 1.5 Update 4
> Reporter: Den Raskovalov
> Priority: Critical
>
> HQL: select deal, items.dateBegin, client.Title from " + CoreDeal.class.getName() + " deal left join deal.stagesWorkflowInstance.history.items items, " + CoreClient.class.getName() + " client where stageResponsible=:stageResponsible and items.index=maxindex(items) and deal.parent=client and deal.stagesWorkflowInstance.Stage.showOnPersonalPage=1
> It works normally on Oracle, but on MS SQL produces:
> Error: String index out of range: -5
> [java.lang.StringIndexOutOfBoundsException]
> java.lang.String.substring(String.java:1768)
> java.lang.String.substring(String.java:1735)
> org.hibernate.hql.CollectionSubqueryFactory.createCollectionSubquery(CollectionSubqueryFactory.java:32)
> org.hibernate.hql.ast.tree.FromElementType.toColumns(FromElementType.java:301)
> org.hibernate.hql.ast.tree.FromElementType.toColumns(FromElementType.java:291)
> org.hibernate.hql.ast.tree.FromElement.toColumns(FromElement.java:377)
> org.hibernate.hql.ast.tree.MethodNode.resolveCollectionProperty(MethodNode.java:115)
> org.hibernate.hql.ast.tree.MethodNode.collectionProperty(MethodNode.java:95)
> org.hibernate.hql.ast.tree.MethodNode.resolve(MethodNode.java:44)
> org.hibernate.hql.ast.HqlSqlWalker.processFunction(HqlSqlWalker.java:844)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.functionCall(HqlSqlBaseWalker.java:2324)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1285)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:4032)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3521)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1758)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1686)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1683)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1683)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:776)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:577)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
> org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
> org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:227)
> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:159)
> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:110)
> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
> org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1612)
> ru.naumen.crm2.bobjects.deal.CoreDealHibernateHandler.listAllDealsWithSortDataByResponsible(CoreDealHibernateHandler.java:109)
> ru.naumen.crm2.ui.tlc.CoreEmployeeTableListController.listMyDealsSorted(CoreEmployeeTableListController.java:70)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[Hibernate-JIRA] Commented: (HBX-528) A bidirectional one-to-many association on a join table
by Hai Nguyen (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-528?page=co... ]
Hai Nguyen commented on HBX-528:
--------------------------------
@ruixiongjian :I have the same problem, could you please tell me the wrong??
> A bidirectional one-to-many association on a join table
> --------------------------------------------------------
>
> Key: HBX-528
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-528
> Project: Hibernate Tools
> Issue Type: Bug
> Components: hbm2java
> Affects Versions: 3.1beta2
> Environment: hibernate3.1 Sybase12.x
> Reporter: ruixiongjian
> Attachments: build.xml, hibernate.properties, onetomany.rar
>
>
> hbm2java:
> [hibernatetool] Executing Hibernate Tool with a Standard Configuration
> [hibernatetool] 1. task: hbm2java (Generates a set of .java files)
> [hibernatetool] 15:32:25,687 INFO Environment:479 - Hibernate 3.1
> [hibernatetool] 15:32:25,734 INFO Environment:494 - loaded properties from resource hibernate.properties: {
> hibernate.connection.driver_class=com.sybase.jdbc3.jdbc.SybDriver, hibernate.cglib.use_reflection_optimizer=
> true, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.max_fetch_depth=1
> , hibernate.dialect=org.hibernate.dialect.SybaseDialect, hibernate.jdbc.use_streams_for_binary=true, hiberna
> te.query.substitutions=true 1, false 0, yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.conne
> ction.username=sa, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:sybase:Tds:Ev
> a:5003/DeviceManager, hibernate.connection.password=****, hibernate.jdbc.batch_versioned_data=true, hibernat
> e.connection.pool_size=1}
> [hibernatetool] 15:32:25,812 INFO Environment:524 - using java.io streams to persist binary types
> [hibernatetool] 15:32:25,828 INFO Environment:525 - using CGLIB reflection optimizer
> [hibernatetool] 15:32:25,843 INFO Environment:555 - using JDK 1.4 java.sql.Timestamp handling
> [hibernatetool] 15:32:26,265 INFO Configuration:264 - Reading mappings from file: F:\testWeb\src\Child.hbm.
> xml
> [hibernatetool] 15:32:27,000 INFO HbmBinder:265 - Mapping class: org.hibernate.test.onetomany.Child -> Chil
> d
> [hibernatetool] 15:32:27,125 INFO HbmBinder:904 - Mapping class join: org.hibernate.test.onetomany.Child ->
> ParentChild
> BUILD FAILED
> F:\testWeb\build.xml:101: Failed in building configuration when adding F:\testWeb\src\Child.hbm.xml
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months