Commit Graph

83 Commits

Author SHA1 Message Date
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
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
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
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
Adam Warski d14805e920 HHH-3939:
- not creating a join table when the association is not audited

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16702 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-06-05 12:25:08 +00:00
Adam Warski f0eb349e87 Fixinga bug with storing null values for fields in a superclass
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16641 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-05-31 13:39:00 +00:00
Adam Warski c44ff38d6d HHH-3847:
- applying a patch to fix the NPE

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16640 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-05-31 13:00:56 +00:00
Adam Warski 8003b501fe HHH-3708:
- improving error reporting for relations where only one entity is audited

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16610 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-05-21 14:52:22 +00:00
Adam Warski f20c97f921 HHH-3706:
- applying patch from Jesse Jose C (thanks!) to fix generating schema in using the ant task when using annotation configuration

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16609 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-05-21 14:13:32 +00:00
Hardy Ferentschik 062e0b5ecd ANN-831 - upgraded to the Beta2 version of JPA2 and reverted some code
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16551 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-05-12 13:09:57 +00:00
Emmanuel Bernard 11668ca67c HHH-3906 EJB-436 ANN-830 Move to JPA 2 API as a dependency
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16523 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-05-07 21:34:21 +00:00
Adam Warski 17e89371b8 Rolling back the TX when an exception occures in a revision listener
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16502 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-05-03 13:57:41 +00:00
Adam Warski 8a58b176b9 HHH-3878:
- fixing reading deleted entities with null-only values, when the field is primitive

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16487 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-04-30 08:39:38 +00:00
Adam Warski 04802d5c26 HHH-3823:
- adding a method to obtain the current revision entity + test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16485 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-04-30 07:36:14 +00:00
Adam Warski 1553578808 HHH-3888, ENVERS-70:
- copying the scale, precision and sql-type attributes to the column definition

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16483 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-04-30 05:47:36 +00:00
Adam Warski ac0889dbd6 HHH-3871:
- not loading proxied objects when not necessary
- test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16393 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-04-22 08:38:05 +00:00
Adam Warski 996f87451b Fixed looking for session delegate
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16204 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-03-20 14:57:08 +00:00
Adam Warski b0f07a6e10 HHH-3794:
- fixing interfaces of components support
- tests for interfaces in components and to-one relations

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16062 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-03-03 16:10:51 +00:00
Adam Warski cd01125e76 * a disabled tests for collecitons of components
* fixing a bug whit auditing collections when the hashcode of the elements in the colleciton changes

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16055 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-03-02 16:08:45 +00:00
Adam Warski 38e6babc34 HHH-3741: fix and testcase; properly computing the referencing property name in a unidirectional collection
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15912 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-02-06 23:10:40 +00:00
Adam Warski dafb54a60f HHH-3729: applying patch with tests
Thank you to Erik-Berndt Scheper for providing the patches!

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15899 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-02-05 08:22:40 +00:00
Adam Warski 5e77669afd HHH-3740: fix with test
Thanks for the test to Erik-Berndt Scheper

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15836 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-01-30 13:38:07 +00:00
Adam Warski 1a1118c0bb HHH-3744: applying the patch.
Thank you to Ben Clark!

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15835 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-01-30 12:01:00 +00:00
Adam Warski e6c9326438 HHH-3736: fix and testcase.
Thank you to Erik-Berndt Scheper for providing the patches!

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15834 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-01-30 10:39:53 +00:00
Adam Warski 45e93dc562 HHH-3563: changing tests to use the same convention
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15803 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-01-20 09:00:54 +00:00
Adam Warski bf8e6fed6f HHH-3563: relation support in components
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15802 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-01-20 08:13:54 +00:00
Adam Warski 50ec688066 HHH-3563, HHH-3561: component handling rework
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15744 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2008-12-31 11:29:37 +00:00
Adam Warski 92a4af082b HHH-3573: fix with tests (a not-insertable column can now be a many-to-one relation)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15743 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2008-12-29 08:52:31 +00:00