[Hibernate-JIRA] Created: (HHH-3729) @AuditJoinTable annotation has no effect for embedded concrete subclasses of a MappedSuperClass
by Erik-Berndt Scheper (JIRA)
@AuditJoinTable annotation has no effect for embedded concrete subclasses of a MappedSuperClass
-----------------------------------------------------------------------------------------------
Key: HHH-3729
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3729
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.4
Reporter: Erik-Berndt Scheper
In the situation where I have a Person entity who has 2 different embedded addresses, like so:
@Embedded
@org.hibernate.envers.Audited
@org.hibernate.envers.AuditJoinTable(name="JB_PSN_CORRESP_ADDRESS_AUD")
private final List<CorrespondenceAdress> correspondenceAddresses;
@Embedded
@org.hibernate.envers.Audited
@org.hibernate.envers.AuditJoinTable(name="JB_PSN_RESIDENTIAL_ADDRESS_AUD")
private final List<ResidentialAdress> residentialAddresses;
Where both CorrespondenceAdress and ResidentialAdress extend Address, which is an abstract MappedSuperclass
@MappedSuperclass
@org.hibernate.annotations.ForceDiscriminator
@org.hibernate.envers.Audited
public abstract class Adress
I find that the AuditJoinTable annotation has no effect
--
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, 10 months
[Hibernate-JIRA] Created: (HHH-2524) Criteria query with collection of values (Set<java.lang.String>)
by marco molinari (JIRA)
Criteria query with collection of values (Set<java.lang.String>)
----------------------------------------------------------------
Key: HHH-2524
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2524
Project: Hibernate3
Issue Type: Bug
Components: query-criteria
Affects Versions: 3.2.2
Environment: Java VM : 1.5.0_07
DBMS : HSQLDB
Hibernate: hibernate-3.2.2.ga
Reporter: marco molinari
Hi to all,
I have a problem with Criteria query on collection of values.
Below I wrote a piece of java code and a piece of Person.hbm.xml.
I want to search all persons with the email addresses containing character '@'.
I obtain an empty list of Person and the SQL created by Criteria seems not correct ( more or less ... WHERE lower(PERSON_ID) ? ).
I search information inside Hibernate site and Hibernate book but I didn't found the solution.
public class Person
{
private Long id;
private Set<String> emailAddresses = new HashSet();
public Set<String> getEmailAddresses()
{
return emailAddresses;
}
public void setEmailAddresses(Set<String> emailAddresses) {
this.emailAddresses = emailAddresses;
}
}
public static void main(String[] args)
{
List<Person> list = session.createCriteria(Person.class)
.add( Restrictions.ilike( "emailAddresses", "@", MatchMode.ANYWHERE ) )
.list();
}
Piece of Person.hbm.xml:
<set name="emailAddresses" table="'PERSON_EMAIL_ADDR'" inverse="true">
<key column="'PERSON_ID'"/>
<element column="'EMAIL_ADDR'" type="java.lang.String" not-null="true"/>
</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, 10 months
[Hibernate-JIRA] Created: (EJB-410) Current build.xml from v3_2_1_GA_CP have a broken junitsingle target
by Juraci Paixao Krohling (JIRA)
Current build.xml from v3_2_1_GA_CP have a broken junitsingle target
--------------------------------------------------------------------
Key: EJB-410
URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-410
Project: Hibernate Entity Manager
Issue Type: Bug
Components: EntityManager
Reporter: Juraci Paixao Krohling
Assignee: Juraci Paixao Krohling
Attachments: EM-build.xml.diff
When trying to run the junitsingle for test org.hibernate.ejb.test.packaging.JarVisitorTest, I figured out that this target was probably copy/paste from junit target, and while the junit target has changed since then, the junitsingle hasn't.
So, the attached patch realigns them, making it work properly.
Command used to test:
ant -Dcommon.dir=../common-v3_2_1_GA_CP -Dhibernate-core.home=../core-Branch_3_2_4_SP1_CP -Dhibernate-core.jar=../core-Branch_3_2_4_SP1_CP/build/hibernate3.jar -lib lib clean junitsingle -Dtestname=org.hibernate.ejb.test.packaging.JarVisitorTest
Before the patch: classpath problems, missing directories, and the test is not executed.
After the patch: the test is executed.
--
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, 10 months
[Hibernate-JIRA] Created: (HHH-3685) Sybase - SchemaImport cannot create stored procedures in chained transaction mode
by Gail Badner (JIRA)
Sybase - SchemaImport cannot create stored procedures in chained transaction mode
---------------------------------------------------------------------------------
Key: HHH-3685
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3685
Project: Hibernate Core
Issue Type: Bug
Components: core
Reporter: Gail Badner
In order to create a Sybase stored procedure that can be executed in a transaction (not autocommit), either:
1) the stored procedure needs to be created in a transaction
or 2) the system stored procedure, sp_procxmode, has to be called (sp_procxmode <stored-proc-name> 'chained')
SchemaExport executes DDL using autocommit, so Sybase stored procedures created with SchemaExport cannot be used in a transaction.
It is not possible to run SchemaExport with autocommit=false.
This causes the unit tests for Sybase stored procedures to fail with a message like:
"Stored procedure 'simpleScalar' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode.'
A workaround is to add a <database-object> tag containing the command to change the stored procedure to chained mode. This tag needs to follow the tag that defines the new stored procedure.
For example, adding the following after the definition of paramHandling in the mapping for SybaseCustomSQLTest will change the paramHandling stored procedure so that it can be used in a transaction.
<database-object>
<create>
sp_procxmode paramHandling, 'chained'
</create>
<drop/>
</database-object>
--
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, 10 months