[Hibernate-JIRA] Created: (HHH-5996) Wire in JdbcServices into SchemaUpdateTask, SchemaExportTask, SchemaValidatorTask, HibernateService.dropSchema(), HibernateService.createSchema()
by Gail Badner (JIRA)
Wire in JdbcServices into SchemaUpdateTask, SchemaExportTask, SchemaValidatorTask, HibernateService.dropSchema(), HibernateService.createSchema()
--------------------------------------------------------------------------------------------------------------------------------------------------
Key: HHH-5996
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5996
Project: Hibernate Core
Issue Type: Bug
Components: core
Reporter: Gail Badner
Assignee: Gail Badner
Fix For: 4.0.0.Alpha2
Wire in JdbcServices into SchemaUpdateTask, SchemaExportTask, SchemaValidatorTask, HibernateService.dropSchema(), HibernateService.createSchema()
--
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
15 years
[Hibernate-JIRA] Created: (HHH-6061) ValidatoryFactory type checking
by Steve Ebersole (JIRA)
ValidatoryFactory type checking
-------------------------------
Key: HHH-6061
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6061
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Reporter: Steve Ebersole
Assignee: Emmanuel Bernard
Fix For: 4.0.0.Alpha2
org.hibernate.ejb.test.ejb3configuration.ConfigurationObjectSettingTest is failing because it expects a failure passing a validation factory object into the configuration which does not implement the javax.validation.ValidatorFactory interface. Changes to make event listeners into a service delay that checking. So we either need to have EJB3Configuration do the checking up front or delay the exception (and thus alter the test).
Do either JPA or validation specs specify when this exception has to occur? Obviously in ideal world earlier is better.
The check is done in TypeSafeActivator btw, since it always takes me time to track it down.
--
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
15 years
[Hibernate-JIRA] Created: (HHH-3646) implement Criteria API querying of collection-of-component
by David Mansfield (JIRA)
implement Criteria API querying of collection-of-component
----------------------------------------------------------
Key: HHH-3646
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3646
Project: Hibernate Core
Issue Type: Patch
Components: query-criteria
Affects Versions: 3.2.6
Environment: hibernate 3.2.6, tested on linux 64-bit openjdk 1.6 (jdk1.5 for compiling). mapping created under annotations 3.3.1ga
Reporter: David Mansfield
Attachments: hib-core-query-collection-of-elements-3_2_6.patch
the attached patch implements a first cut, extremely rough, yet working extension of the CriteriaQueryTranslator class to allow for querying of properties of components inside a collection, or querying properties of associated elements of components inside a collection. eg for
* code is lightly tested, this example is for illustrative purposes only
* i use annotations, so my example is expressed in those terms, and i've only tested with mappings generated via annotations, however, the modifications only apply to the core.
@Entity
class Order {
@Id
String id;
@CollectionOfElements
Set<OrderLineItem> lineItems;
}
@Embeddable
class OrderLineItem {
@ManyToOne
Product product;
Integer quantity;
}
@Entity
class Product {
String name;
}
Then we can now do:
Criteria c = session.createCriteria(Order.class)
.createCriteria("lineItems")
.add(Restrictions.gt("quantity", new Integer(1))
.list();
or
Criteria c = session.createCriteria(Order.class)
.createCriteria("lineItems")
.createCriteria("product")
.add(Restrictions.like("name", "cake%")
.list();
--
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
15 years
[Hibernate-JIRA] Created: (HHH-6058) Error in mapping file in Event.hbm.xml file for documentation in download
by Brian Lavender (JIRA)
Error in mapping file in Event.hbm.xml file for documentation in download
-------------------------------------------------------------------------
Key: HHH-6058
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6058
Project: Hibernate Core
Issue Type: Bug
Components: documentation
Affects Versions: 3.6.2
Environment: download of 3.6.2 .zip or .tar.gz file
hibernate-distribution-3.6.2.Final/documentation/manual/en-US
Reporter: Brian Lavender
Priority: Minor
1.2.5. Bi-directional associations
The following addition to Event.hbm.xml file references the package "events" which does not exist in this version of the tutorial.
The following:
Now map this side of the association in Event.hbm.xml.
<set name="participants" table="PERSON_EVENT" inverse="true">
<key column="EVENT_ID"/>
<many-to-many column="PERSON_ID" class="events.Person"/>
</set>
should read:
Now map this side of the association in Event.hbm.xml.
<set name="participants" table="PERSON_EVENT" inverse="true">
<key column="EVENT_ID"/>
<many-to-many column="PERSON_ID" class="Person"/>
</set>
--
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
15 years