Commit Graph

113 Commits

Author SHA1 Message Date
Adam Warski 31f9f8ffc5 HHH-4694:
- adding support for "fake" bidirectional many-to-one relations using an experimental @AuditMappedBy annotation
- adding a new work unit, extracting common work unit code
- upgrading TestNG to 5.10

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18224 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-15 10:50:11 +00:00
Steve Ebersole b5fb73c5ee HHH-4672 - Upgrade JPA dependency to hibernate-jpa-2.0-api-1.0.0-CR-1
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18216 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-12 23:56:45 +00:00
Adam Warski 2fef8a4acc HHH-4670:
- changing the way work unit collision is resolved: now work units are merged, the result is a work unit (possibly new)
- work units should behave as immutable objects
- test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18208 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-11 12:40:05 +00:00
Adam Warski b402af2eae - making the test actually assert that the results are correct
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18207 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-11 10:37:54 +00:00
Adam Warski edd5bed074 - Lists also can be the inverse side of bidirectional one-to-many relationships
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18204 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-11 07:43:34 +00:00
Adam Warski 04fae574ae HHH-4090:
- adding support for many-to-many relations from an audited, to a non-audited entity

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18201 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-10 20:28:27 +00:00
Adam Warski 7af9b42d23 HHH-4650:
- fix for removing an item from a persistent collection, flushing, and adding the same item again: merging the collection change work units data
- test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18163 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 16:08:13 +00:00
Adam Warski 25343680c9 HHH-4645:
- shortening the names of the default schema/default catalog properties

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18156 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-07 12:43:06 +00:00
Adam Warski cd7a5cac7b HHH-4645:
- renaming properties from camel case to use _ to separate words, as is the Hibernate convention
- old property names are still supported
- updating documentation

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18152 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-07 08:55:15 +00:00
Adam Warski e9ff8cf3b6 HHH-4644:
- when using join-inheritance, the columns in child entities which map to the revision number use the correct sql-type
- test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18150 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-07 08:36:49 +00:00
Adam Warski ecb103cf55 HHH-4641:
- support for @PrimaryKeyJoinColumn on inherited entities
- test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18136 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-04 16:30:16 +00:00
Adam Warski acecf71618 HHH-4633:
- enabling and fixing the test for same-table m2m mapppings

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18123 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-03 14:47:45 +00:00
Adam Warski de48820558 HHH-4633:
- enabling and fixing the test for same-table m2m mapppings

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18122 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-03 14:39:52 +00:00
Adam Warski ed2d72e492 HHH-4633:
- supporting where clauses on collections (e.g. @WhereJoinTable)
- test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18120 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-03 10:23:16 +00:00
Adam Warski 6f978e52bb HHH-4634:
- adding a register of all audit entity names generated so far
- generating a unique entity name in case of a relation owned by both sides
- fixing the test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18118 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-03 09:03:31 +00:00
Scott Marlow 5233aeb158 HHH-4546 add JPA 2.0 locking. First pass of support of code around AbstractEntityPersister.getAppropriateLoader
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18116 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-02 19:41:21 +00:00
Adam Warski 07ec77023e HHH-4634:
- testcase

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18113 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-02 12:09:56 +00:00
Adam Warski b46895ff17 HHH-4633:
- testcase

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18112 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-02 11:38:32 +00:00
Adam Warski 7b6b156869 * Skipping auditing id mapping generation if the id mapping is unsupported (e.g. key-many-to-one)
* Some logging

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18109 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-01 07:20:17 +00:00
Adam Warski 393f09eeba HHH-4611:
- handling the case when the revision number in the revision entity uses a @Column(columnDefinition=): the sql-type is property is then set on the REV property of audit entities

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18068 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-25 16:32:05 +00:00
Adam Warski 096437dec2 HHH-4608:
- options to specify default schema/catalog name for audit tables

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18059 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-25 08:35:22 +00:00
Adam Warski df17063144 HHH-4608:
- options to specify default schema/catalog name for audit tables

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18056 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-25 07:45:45 +00:00
Adam Warski 49f7b49bdc HHH-4608:
- options to specify default schema/catalog name for audit tables

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18035 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-24 16:19:58 +00:00
Adam Warski f39550fff1 HHH-4540:
- applying patch from Nicolas Rougé
- the revision timestamp can now be a j.u.Date or a j.s.Date, and be mapped to a Date in the DB
- test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18032 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-24 15:21:10 +00:00
Adam Warski 9d5f0d084a Not swallowing exceptions in some cases when a tx is rolled back by Envers
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18028 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-24 09:19:47 +00:00
Adam Warski deabfeb485 An error message (instead of an NPE) when a suprclass of an audited entity is not audited
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18024 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-23 15:43:31 +00:00
Gail Badner c97e15d28f HHH-2762 : Add AbstractDelegateSessionImplementor.getNonFlushedChanges()/applyNonFlushedChanges()
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17958 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-11 18:56:29 +00:00
Adam Warski ecaf3990b8 Removing the org.jboss compatibility classes
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17912 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-04 18:40:13 +00:00
Steve Ebersole 5ecfeb5cb8 prep 3.5.0-Beta-2 by hand because maven rocks
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17892 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-02 18:20:40 +00:00
Steve Ebersole c42e871b95 prep 3.5.0-Beta-2 by hand because maven rocks
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17890 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-02 18:09:43 +00:00
Adam Warski 37dc5e05ba Removing disabling of metamodel generation in tests after it's been fixed in EM.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17875 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-10-29 07:23:12 +00:00
Adam Warski 356063a33f HHH-4488:
- applying patch (making collection proxy serializable) + test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17853 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-10-27 19:58:19 +00:00
Adam Warski 2f7092c17c Diabling generation of the metamodel for tests as the generation breaks them
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17852 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-10-27 19:53:14 +00:00
Adam Warski 99dac200f2 HHH-4449:
- applying patch

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17587 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-09-30 17:16:01 +00:00
Adam Warski c987deb619 HHH-4447:
- applying patches

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17586 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-09-30 17:11:04 +00:00
Adam Warski 58fdaeb637 HHH-4437:
- applying patches

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17584 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-09-30 16:28:00 +00:00
Steve Ebersole 85c34f356a restting pom versions to SNAPSHOT after manual tagging
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17373 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-19 21:10:09 +00:00
Steve Ebersole 122aa3f7e4 [maven-release-plugin] prepare branch hibernate-3.5.0.Beta-1
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17371 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-19 19:24:23 +00:00
Steve Ebersole cb337e6f2c [maven-release-plugin] rollback the release of hibernate-3.5.0.Beta-1
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17370 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-19 19:04:32 +00:00
Steve Ebersole 677ed6f9c9 [maven-release-plugin] prepare release hibernate-3.5.0.Beta-1
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17369 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-19 19:00:59 +00:00
Steve Ebersole 33d5534b14 [maven-release-plugin] rollback the release of hibernate-3.5.0.Beta-1
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17364 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-19 15:02:46 +00:00
Steve Ebersole bcecf23302 [maven-release-plugin] prepare release hibernate-3.5.0.Beta-1
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17349 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-18 13:48:31 +00:00
Steve Ebersole 9254c3e876 moved to separately released hibernate-commons-annotations
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17343 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-17 22:19:04 +00:00
Adam Warski e44e8c6d6a HHH-3957:
- when all properties of an embedded object are null, don't set the embedded object on the entity

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17273 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-12 14:49:55 +00:00
Adam Warski 5d08386293 HHH-4010:
- applying patch: allow audited relations to non-audited entities
- doc update

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17248 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-08-06 18:21:38 +00:00
Steve Ebersole 1f98fc9ed6 EJB-447 - Implement JPA 2.0 criteria apis
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17183 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-07-21 13:54:31 +00:00
Adam Warski 8165b1d70c HHH-3819:
- adding an option to store the data when an entity is deleted in the revision (instead of having to read the last-but-one revision)

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16981 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-06-30 15:56:49 +00:00
Adam Warski 206283ad66 Searching for Session recurses when reading delegates of EntityManager
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16980 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-06-30 15:11:37 +00:00
Adam Warski 2ce2f49d24 - the default revision entity is serializable
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16979 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-06-30 15:10:53 +00:00
Steve Ebersole f70fd82cb6 HHH-3979 - Upgrade to javassist 3.9.0
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16892 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-06-23 07:09:35 +00:00