Commit Graph

585 Commits

Author SHA1 Message Date
lukasz-antoniak 0efd1dd886 Merge pull request #244 from lukasz-antoniak/HHH-4439
HHH-4439 - Override auditing behavior of properties defined in @MappedSuperclass
2012-01-09 12:43:45 -08:00
Lukasz Antoniak 53b32e9e8d HHH-4439 - Javadoc change 2012-01-09 21:18:57 +01:00
Lukasz Antoniak 05df3d8638 HHH-4439 - Test and Javadoc change 2012-01-06 15:20:27 +01:00
Lukasz Antoniak 1293253412 HHH-4439 - Javadoc change 2012-01-06 14:37:24 +01:00
Lukasz Antoniak 0a08780e13 HHH-4439 - Deprecate Audited.auditParents 2012-01-06 14:14:07 +01:00
Lukasz Antoniak 5c80268664 HHH-6825 - Fix and test 2012-01-04 21:10:53 +01:00
Michael Rudolf 875a4b29dd HHH-5891: Added ordering clause to query generated by getRevisions() to fulfill guarantee given in JavaDoc. 2012-01-04 17:25:58 +01:00
Lukasz Antoniak a49e02b239 HHH-4439 - Patch and test 2011-12-25 18:42:08 +01:00
Adam Warski 199f3e300c Merge pull request #204 from lukasz-antoniak/HHH-6753
HHH-6753 - Envers WorkUnits: Problems with merge
2011-11-08 03:07:56 -08:00
Adam Warski 946925f3e2 HHH-6793: checking if session isn't closed 2011-11-02 11:44:36 +01:00
Adam Warski 653211da6c HHH-6784: only adding the REVINFO table if there are any audited entities. 2011-10-29 13:31:31 +02:00
Lukasz Antoniak 4d3620342b HHH-6753 - JavaDoc changed 2011-10-29 00:57:57 +02:00
Lukasz Antoniak fe2d1fe0ea HHH-6753 - Fix and test 2011-10-29 00:44:10 +02:00
Adam Warski 4de4bad98a Merge pull request #202 from lukasz-antoniak/HHH-3843
HHH-3843 - NonUniqueObjectException exception while auditing parent with @ManyToMany relation
2011-10-25 07:35:31 -07:00
Strong Liu bdba5898c9 clean up imports 2011-10-24 16:26:37 +08:00
Lukasz Antoniak 26102b0574 HHH-3843 - Organize imports 2011-10-22 11:23:00 +02:00
Lukasz Antoniak 6a89afccb6 HHH-3843 - Refactoring, test simplified 2011-10-22 11:20:46 +02:00
Lukasz Antoniak 86482c630b HHH-3843 - Fix and test 2011-10-19 20:07:49 +02:00
Lukasz Antoniak 8dd9c79ebd HHH-6636 - Comment change 2011-10-19 19:43:12 +02:00
Lukasz Antoniak 9fff9862b9 HHH-6636 - Fix and test 2011-10-19 19:34:54 +02:00
Michal Skowronek 1c7532f875 HHH-6605 - Added Mod Flags suffix configurability 2011-10-11 20:19:44 +02:00
Michal Skowronek 43a602b100 HHH-6605 - Removed some duplication in mappers code 2011-10-11 20:19:44 +02:00
Michal Skowronek 726571b270 HHH-6605 - Removed OVERRIDE_USING_MODIFIED_FLAG_PROPERTY global property 2011-10-11 20:19:44 +02:00
Michal Skowronek d7904dbf0d Moved Test logic to separate classes
Added new test cases
Merge logic for CollectionChangeWorkUnits
2011-10-11 20:19:44 +02:00
Michal Skowronek 313bb01c50 Fix for failing tests 2011-10-11 20:19:43 +02:00
Michal Skowronek 9c4b385bdb Modified Flags feature - tracking changes on property level
Extended some of already existing test cases
More units to add
2011-10-11 20:19:43 +02:00
Strong Liu 7b1c172b84 HHH-6716 envers should set the TCCL to the envers classloader before constructing a dom4j instance. This will allow applications to use their own version of dom4j 2011-10-08 15:03:14 +08:00
Adam Warski 9039e4d29e HHH-6696: additional javadoc explanation 2011-10-01 10:40:11 +02:00
Lukasz Antoniak 45f3ced6da HHH-6696 - RevisionListener class configuration parameter 2011-09-29 20:50:07 +02:00
Strong Liu 999526c3c3 minor change, correct javadoc and typo 2011-09-15 23:25:29 +08:00
Adam Warski 53626310cf HHH-6647: requesting an upgraded lock when looking for the last audit record to make sure the same one isn't found by two concurrent transactions 2011-09-12 09:17:18 +02:00
Adam Warski 6df15ef85a Typo in method name 2011-09-12 09:17:17 +02:00
Lukasz Antoniak 578de2e5a2 HHH-6614 - Fix and test 2011-09-08 22:48:34 +02:00
JPAV adf6271594 HHH-6268 Bound JPA callback methods to entities, including those defined by default listeners, and added new method to Integrator that handles MetadataImplementor instead of Configuration, modifying affected classes accordingly. BeanValidationIntegrator and EnversIntegrator still need to be implemented but require other portions of metamodel to be completed first. 2011-08-15 10:13:29 -05:00
Adam Warski 913f95f8df Merge pull request #114 from lukasz-antoniak/HHH-5580-v1.2
HHH-5580 - Moving query API
2011-06-30 23:47:13 -07:00
Adam Warski 33a4694fea HHH-5917: improving documentation 2011-06-29 18:27:35 +02:00
Adam Warski 9129cf38ce Merge pull request #112 from lukasz-antoniak/HHH-5917
HHH-5917 - Adding @Audited(auditedParents={classes})
2011-06-29 09:19:19 -07:00
Lukasz Antoniak 1f0149378b HHH-5580 - Renaming EntitiesChangedInRevisionManager to CrossTypeRevisionChangesReader 2011-06-29 09:28:35 +02:00
Lukasz Antoniak 587c228973 HHH-5580 - Moving queries from AuditReader to EntitiesChangedInRevisionManager 2011-06-26 12:46:10 +02:00
Adam Warski abaae293d8 HHH-6177: fixing a bug with mapping null references introduced by the last pull request 2011-06-22 08:42:13 +02:00
Adam Warski 4662d0a714 Merge pull request #77 from skowronm/HHH-6177
HHH-6177: fixing problems with mixed inheritance by not using the properties tag when creating audit entities mapping
2011-06-21 23:13:10 -07:00
Steve Ebersole 4a4f636caf HHH-6330 - Remove entity mode switching capability 2011-06-19 22:12:18 -05:00
Michal Skowronek 6f3c564b9a Extended test cases and provided a fix for the issue
The idea for the fix is to simply stop using properties tag for relations in favor of plain (possibly multiple) propeties
2011-06-18 16:45:32 +02:00
Lukasz Antoniak 84ee0fb879 HHH-5917 - Fix and test 2011-06-18 10:04:52 +02:00
Lukasz Antoniak f3a6476a66 HHH-5580 - Refactoring 2011-06-12 14:15:10 +02:00
Lukasz Antoniak 13c9fd4f9d HHH-5580 - Persisting entity name by default 2011-06-12 13:55:00 +02:00
Lukasz Antoniak 337bec4574 HHH-4760 - Fix and test 2011-06-04 14:41:25 +02:00
adamw e9cf8dd115 HHH-5967: code cleanup, extending test 2011-06-02 12:07:59 +02:00
Oliver Lorenz 4fac1d4344 cleaned up the code I introduced 2011-06-02 12:06:47 +02:00
Oliver Lorenz 735899da92 first fix (must still be cleaned up) 2011-06-02 12:06:31 +02:00
adamw 789bf60427 HHH-5580: some documentation fixes 2011-06-02 11:07:11 +02:00
adamw ae7b95c876 HHH-5580: fixing compilation error (class moved) 2011-06-02 10:08:05 +02:00
adamw f865be9739 Merge branch 'HHH-5580-POC' of git://github.com/lukasz-antoniak/hibernate-core
Conflicts:
	hibernate-envers/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java
2011-06-02 10:00:36 +02:00
Adam Warski 0a55292b7c Merge pull request #90 from lukasz-antoniak/HHH-5025
HHH-5025 - Support caching audit queries using ehcache's DiskStore
2011-06-01 22:37:50 -07:00
Lukasz Antoniak 4022571196 HHH-5580 - Naming and EntitiesModifiedAtRevisionQuery tests 2011-05-28 17:01:26 +02:00
Lukasz Antoniak 97d2ee3dac HHH-5025 - RevisionType serialization fix and test 2011-05-26 22:19:55 +02:00
Adam Warski 8ff2f9d192 Merge pull request #76 from skowronm/HHH-6176
HHH-6176: Envers ignores custom comparators for SortedSets
2011-05-25 05:56:24 -07:00
Lukasz Antoniak 36e0d7eced HHH-5580 - Documentation fix 2011-05-23 19:42:58 +02:00
Michal Skowronek f07044a82f Added test cases for SortedMap
Fixed issue with custom comparators
2011-05-21 22:11:28 +02:00
Lukasz Antoniak e558538ca1 HHH-5580 - Cleanup 2011-05-21 13:35:36 +02:00
Lukasz Antoniak c2e53061f2 HHH-5580 - Cleanup 2011-05-21 12:49:37 +02:00
Lukasz Antoniak bcfa5ffed9 HHH-5808 - Fix and test 2011-05-19 21:30:13 +02:00
Lukasz Antoniak 403b15cae8 HHH-5580 - Query refactoring 2011-05-17 23:14:01 +02:00
Lukasz Antoniak 7dc925fcf6 HHH-5580 - Improving findEntityTypesChangedInRevision() method performance 2011-05-16 22:06:45 +02:00
Lukasz Antoniak 1878b23850 HHH-5580 - Naming 2011-05-16 19:18:30 +02:00
Lukasz Antoniak dd55a99b00 HHH-5580 - Using Criteria API in RevisionInfoQueryCreator 2011-05-15 00:46:54 +02:00
Lukasz Antoniak b36b095c3c HHH-5580 - Refactoring 2011-05-14 23:47:34 +02:00
Lukasz Antoniak 2ba3cc6dab HHH-5580 - Handle PersistentCollectionChangeWorkUnit 2011-05-08 00:40:14 +02:00
Lukasz Antoniak d1e092b471 HHH-5580 - Documentation update 2011-05-07 23:23:15 +02:00
Lukasz Antoniak 53699cecac HHH-5580 - Modified EntityTrackingRevisionListener interface 2011-05-07 19:06:21 +02:00
Lukasz Antoniak 88eda2b081 HHH-5580 - Query fix 2011-05-07 09:22:10 +02:00
Steve Ebersole 4ee0d4237d HHH-6198 - Split org.hibernate.event package into api/spi/internal 2011-05-04 18:20:53 -05:00
Steve Ebersole fb44ad936d HHH-6196 - Split org.hibernate.engine package into api/spi/internal 2011-05-04 17:15:47 -05:00
Steve Ebersole 36ba1bcafb HHH-6192 - Split org.hibernate.collection package up into api/sip/internal 2011-05-04 15:13:29 -05:00
Steve Ebersole c930ebcd7d HHH-6191 - repackage org.hibernate.cache per api/spi/internal split 2011-05-04 14:43:04 -05:00
Lukasz Antoniak 98342a7e2d HHH-5580 - Tracking entity names in revision 2011-04-27 23:49:22 +02:00
Steve Ebersole 3ec1928653 HHH-6163 - Need to fix location of envers integrator service file 2011-04-27 12:27:28 -05:00
Adam Warski 061fbc15b9 Merged pull request #68 from lukasz-antoniak/HHH-4787.
HHH-4787 - AuditProperty.isNull() query fix and tests
2011-04-27 05:46:32 -07:00
Steve Ebersole ff74ceaaa4 HHH-6155 - Migrate o.h.impl package to o.h.internal 2011-04-24 09:24:32 -05:00
Lukasz Antoniak d56089559c HHH-4787 - Clean up 2011-04-21 20:12:29 +02:00
Lukasz Antoniak 4810a48096 HHH-4787 - AuditProperty.isNull() query fix and tests 2011-04-21 20:04:16 +02:00
Steve Ebersole 53e0439880 HHH-6144 - Introduce ServiceRegistryBuilder 2011-04-20 15:58:10 -05:00
Lukasz Antoniak 86c15fd212 HHH-5276 - Refactoring 2011-04-19 19:19:00 +02:00
Lukasz Antoniak ac49a906e8 HHH-5276 - REVINFO in different database schema creation 2011-04-19 19:19:00 +02:00
Lukasz Antoniak d7cc102b00 HHH-6069 - Escape entity fields name 2011-04-19 17:27:07 +02:00
Lukasz Antoniak 40f28ff69c HHH-4073 - Discriminator formula support in Envers 2011-04-13 19:12:44 +02:00
Steve Ebersole 6504cb6d78 HHH-6098 - Slight naming changes in regards to new logging classes 2011-04-08 09:44:13 -05:00
Steve Ebersole 9a81587505 HHH-6081 - Finish up Integrator 2011-04-06 13:54:03 -05:00
Steve Ebersole aad256c634 HHH-6081 - Finish up Integrator 2011-04-05 16:10:41 -05:00
adamw 1a1432179f HHH-6064: only registering the Envers listeners if there are any audited entities 2011-03-30 20:45:36 +02:00
Steve Ebersole ba71fe0132 HHH-6036 - integration documentation generation 2011-03-29 15:14:09 -05:00
Steve Ebersole ef3830b7ee HHH-5913 - Implement set of event listeners as a service 2011-03-28 16:55:23 -05:00
Steve Ebersole 753b95729a HHH-5913 - Implement set of event listeners as a service 2011-03-28 08:03:11 -05:00
Steve Ebersole 6a180aaa1f HHH-5913 - Implement set of event listeners as a service 2011-03-28 07:55:45 -05:00
Steve Ebersole 42c609cfdd HHH-5913 - Implement set of event listeners as a service 2011-03-27 11:45:18 -05:00
Steve Ebersole e8ebe8e396 HHH-5913 - Implement set of event listeners as a service 2011-03-27 11:45:18 -05:00
Steve Ebersole 5adf2960c2 HHH-5913 - Implement set of event listeners as a service 2011-03-27 11:45:18 -05:00
Steve Ebersole 47abaf12fa HHH-5697 - Support for multi-tenancy 2011-03-26 10:50:18 -05:00
Steve Ebersole fe8c7183d1 HHH-5697 - Support for multi-tenancy 2011-03-26 09:11:33 -05:00
Steve Ebersole d42d52b8f1 HHH-5697 - Support for multi-tenancy 2011-03-25 18:46:20 -05:00
Steve Ebersole 64c38a0726 HHH-2680 - Blobs not updated on Session.merge() for detached instances 2011-03-24 08:15:10 -05:00
Steve Ebersole efa325f5db HHH-6027 - Migrate o.h.action pakcage to api/spi/internal split 2011-03-18 17:47:49 -05:00
Steve Ebersole 8b94ac65a1 HHH-5994 - Inserts may be delayed because TransactionCoordinatorImpl.isTransactionInProgress() returns false for non-JTA transactions 2011-03-09 09:52:12 -06:00
JPAV 346418c4ef Final sync with upstream master 2011-03-08 16:19:57 -06:00
Steve Ebersole 0816d00e59 HHH-5986 - Refactor org.hibernate.util package for spi/internal split 2011-03-05 09:26:34 -06:00
Steve Ebersole b4a440e8d3 HHH-5949 - Migrate, complete and integrate TransactionFactory as a service 2011-03-02 16:52:43 -06:00
Gail Badner 7243d04541 HHH-5941 : remove deprecated set(), nullSafeSet(), get(), nullSafeGet() methods and add SessionImplementer argument to UserType.nullSafeGet()/nullSafeSet() 2011-02-25 16:29:09 -08:00
JPAV 79080f74d6 sync with master 2011-02-24 16:18:35 -06:00
JPAV c71e3c4baf Changed copyright notice from JBoss to Hibernate for new logging classes 2011-02-23 16:46:58 -06:00
Brian Parker e7d19bb4da Apply read and write expressions to the revision entity. 2011-02-23 15:32:25 -06:00
adamw 2ccc73454a HHH-5883: Fixing - @Lob annotated field throws MappingException when the field type is serializable 2011-02-23 15:20:38 -06:00
JPAV ece77365dc Updated to work with latest releases of jboss-logging and jboss-logging-tools 2011-02-16 16:14:27 -06:00
Brian Parker c61606c458 Apply read and write expressions to the revision entity. 2011-02-14 18:05:22 +01:00
JPAV 8c806d361d Changes from requests at Hibernate meeting: message codes, use XXXf methods for debug and trace, use @Cause 2011-02-08 13:55:27 -06:00
adamw d8772c04a8 HHH-5883: Fixing - @Lob annotated field throws MappingException when the field type is serializable 2011-01-31 12:35:11 +01:00
JPAV af24178145 Give each project a single logger 2011-01-18 16:01:00 -06:00
JPAV 3712e1ad7e Give each project a single logger 2011-01-18 16:00:59 -06:00
Sanne Grinovero 3fab254606 HHH-5839 - non-utf8 characters in AuditReaderImpl 2011-01-13 11:46:15 +00:00
Hernan 83b1f22ea9 Removing isNotAudited() method. 2011-01-04 09:36:55 +01:00
Hernan 323d9dd16e Removing isEntityClassNotAudited() and isEntityNameNotAudited() method for later discussion. 2011-01-04 09:36:54 +01:00
Hernan 89393c5e9e HHH-5588
Removing EnversExeption and using HibernateException instead.
2011-01-04 09:36:54 +01:00
Hernan 188ec620e8 Creating a generic envers exception 2011-01-04 09:36:53 +01:00
Hernan 46660fd045 Resolving HHH-5588: Improve support for entityNames in envers.
When instantiating an historic entity, envers put its entityName on the cache for future uses.
2011-01-04 09:36:53 +01:00
Hernan 7ec8c11327 Resolving HHH-5588: Improve support for entityNames in envers.
Adding isNotAudited for determine if an entity is marked as @Audited(NOT_AUDITED)
2011-01-04 09:36:53 +01:00
Hernan eaeb4f8343 Resolving HHH-5588: Improve support for entityNames in envers.
Adding entityNameCache for resolving entityNames in envers.
2011-01-04 09:36:53 +01:00
Hernan 328c098ab9 Resolving HHH-5588: Improve support for entityNames in envers.
Adding methods for knowing if an entityName is marked to be resolved by core (@Audited(targetAuditMode='NOT_AUDITED')
	isEntityNameNotAudited()

Adding method to resolve the entityName for an entity retrieved previously by envers.
	getEntityName()
2011-01-04 09:36:53 +01:00
Erik-Berndt Scheper f125f06c45 HHH-5750 - Proxied objects lose the temporary session used to initialize them 2010-12-22 11:37:07 +01:00
Svyatoslav Reyentenko e831e29435 Ignore collection changes if no revision on collection change is set 2010-12-09 09:03:35 +01:00
Gail Badner b006a6c3c5 HHH-5765 : Refactor JDBCContext/ConnectionManager spi/impl and to use new proxies 2010-12-08 17:23:44 -08:00
nandina fd0a463f0e Added comments for changes of HHH-5686 2010-11-11 15:19:25 +01:00
nandina 696fcccd0f Fix for HHH-5686 Changed the generation of HQL query for one to many relations from "select new list(r) from Relation r" to "select r from Relation r". 2010-11-11 15:19:21 +01:00
adamw c6a6e5cea1 Fix for HHH-4646 and HHH-5177: removing unneeded addPropertiesFromClassRec method 2010-10-29 19:57:48 +02:00
Hernán Chanfreau b919969497 Fix for HHH-4646 and HHH-5177
- Read audited properties from subclasses first, then check recursively on superclasses.
- Chech on superclasses only if a class is audited
- Calculate if the "current" class of the recursion is audited at class level.
- Created ComponentAuditedPropertiesReader subclass for AuditedPropertiesReader to use for reading component audited properties inside classes
- Created a protected method in AuditedPropertiesReader, letting the subclass do their job.
- Ordered the code to be more understandable.
2010-10-29 19:57:47 +02:00
Hernán Chanfreau 873fe754e3 Fix for HHH-4646 and HHH-5177
added methods isEmpty() and contains(key)
2010-10-29 19:57:47 +02:00
Steve Ebersole e21fed8304 HHH-5616 - Switch to Gradle for builds .. envers 2010-10-11 14:41:48 -05:00