[
https://issues.jboss.org/browse/AS7-2612?page=com.atlassian.jira.plugin.s...
]
Strong Liu commented on AS7-2612:
---------------------------------
I don't get how this envers test affects JAXR tests....
doesn't Arquillian start each new AS instance for each test?
the schema setting in this test is set to "create-drop",so the ADDRESS table
will be created during SessionFactory initialization, and be dropped when SessionFactory
closed.
and doesn't JAXR test create this table by itself?
or would you please try to apply this patch?
{code}
diff --git
a/testsuite/integration/src/test/java/org/jboss/as/test/integration/jpa/hibernate/envers/Address.java
b/testsuite/integration/src/test/java/org/jboss/as/test/integration/jpa/hibernate/envers/Address.java
index 2ea98c5..5fa8f86 100644
---
a/testsuite/integration/src/test/java/org/jboss/as/test/integration/jpa/hibernate/envers/Address.java
+++
b/testsuite/integration/src/test/java/org/jboss/as/test/integration/jpa/hibernate/envers/Address.java
@@ -28,6 +28,7 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
+import javax.persistence.Table;
import org.hibernate.envers.Audited;
@@ -36,6 +37,7 @@ import org.hibernate.envers.Audited;
*/
@Entity
@Audited
+@Table(name = "ADDRESS_HIB")
public class Address {
@Id
@GeneratedValue
{code}
please let me know if this resolve the issue and i will create pull request
BasicEnversTestCase seems to corrupt JAXR database
--------------------------------------------------
Key: AS7-2612
URL:
https://issues.jboss.org/browse/AS7-2612
Project: Application Server 7
Issue Type: Bug
Components: JAXR, JPA / Hibernate
Reporter: Thomas Diesler
Assignee: Strong Liu
Fix For: 7.1.0.Beta1
JAXR tests fail because table ADDRESS cannot be found (any more). In the log I found a
reference to ADDRESS_AUD. With the BasicEnversTestCase ignored the JAXR tests pass.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira