Commit Graph

1133 Commits

Author SHA1 Message Date
Steve Ebersole da647e7deb HHH-4705 - Derby does now in fact support the full ANSI SQL TRIM function
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18252 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-16 23:15:01 +00:00
Steve Ebersole d2f3d18b4a HHH-4705 - Derby does now in fact support the full ANSI SQL TRIM function
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18251 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-16 22:18:03 +00:00
Steve Ebersole 384d5859c2 git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18250 1b8cb986-b30d-0410-93ca-fae66ebed9b2 2009-12-16 22:12:45 +00:00
Strong Liu b62c0afcad HHH-4614 Instrumented model with abstract MappedSuperclass and field access doesn't work (fix javassist integration issue, not yet cglib)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18246 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-16 18:31:57 +00:00
Strong Liu b50f0660ee HHH-4457 SchemaUpdate fails on Sybase ASE 15 when a new column is added without a default value
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18245 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-16 18:28:58 +00:00
Scott Marlow 0776dbab9a HHH-4546 JPA-2 locking. LockOptions can include per table alias LockMode
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18243 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-16 18:23:31 +00:00
Adam Warski 1336b83e03 HHH-4694:
- using the correct entity name in case of inheritance
- test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18239 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-16 14:20:52 +00:00
Adam Warski ab3ee1998a HHH-4694:
- updating docs

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18238 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-16 13:05:17 +00:00
Adam Warski a90cf3e5eb HHH-4694:
- support for indexed "fake" bidirectional relations
- adding a field-calculation-phase, after all metadata is read from annotations, but before any audit entities generation is done

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18236 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-16 11:09:34 +00:00
Steve Ebersole 5a6686810b HHH-4590 - CASTs from CriteriaBuilder.toXXX methods still need to be fleshed out
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18230 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-15 18:09:53 +00:00
Steve Ebersole dfe61a4a5e HHH-4697 - Add means to get HibernateEntityManagerFactory from HibernateEntityManagerImplementor
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18229 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-15 17:28:51 +00:00
Emmanuel Bernard d14b2f4404 HHH-4696 add persistence_2_0.xml
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18228 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-15 17:23:00 +00:00
Emmanuel Bernard 7daca69d7e HHH-4692 add orm_2_0.xml
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18227 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-15 17:15:33 +00:00
Adam Warski ad0be2d822 HHH-4694:
- if a field is non-insertable in a "fake" bidirectional relation, not storing modifications made on the non-insertable side
- also, not generating bidirectional collection changes in such case
- updating test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18226 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-15 12:52:20 +00:00
Adam Warski 3740a20550 HHH-4694:
- adding support for multiple "fake" bidirectional relations
- downgrading testng back to 5.8 as using 5.10 was OOMing the tests
- updating h2 dependency to a newer version

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18225 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-15 12:27:01 +00:00
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 fc54029a9f HHH-4671 - Derby is one of those dialects that should not support "cross join"
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18223 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-13 01:17:08 +00:00
Steve Ebersole 22e78ef6bf HHH-4674 - JBoss has renamed its JACC artifact
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18222 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-13 01:10:32 +00:00
Steve Ebersole 8f4e216049 HHH-4673 - Upgrade JPA Static Metamodel Generator dependency to 1.0.0.Beta1
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18221 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-13 00:31:53 +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
Hardy Ferentschik 025b3cc141 HHH-4527
No functional changes yet. Just some cleanup and refactoring (extract method, encapsulate field)

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18211 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-11 19:14:01 +00:00
Galder Zamarreno b95147a81e Upgraded to Infinispan 4.0.0.CR3. It no longer depends on a transitive rhq/jopr dependency :)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18210 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-11 16:44:23 +00:00
Scott Marlow 18bb17061f HHH-4546 JPA-2.0 locking. More pessimistic lock exception support and timeout exception support
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18209 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-11 13:23:17 +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
Emmanuel Bernard 36fddaf4fc add test on Bean Validation in HEM
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18206 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-11 09:12:10 +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
Emmanuel Bernard e183c40ee7 HHH-4659 HHH-4668 add mapping support for validation-mode and shared-cache-mode
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18200 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-10 16:49:46 +00:00
Emmanuel Bernard 11d10450ce HHH-4665 PersistenceUnitUtil.getIdentifier()
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18198 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-10 15:27:00 +00:00
Emmanuel Bernard a0ddead69f HHH-4663 Add test showing the serialization failure for CriteriaQuery
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18196 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-10 14:27:30 +00:00
Emmanuel Bernard 3703d4c71c HHH-4662 do not rollback when the exception occurs
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18195 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-10 14:11:33 +00:00
Emmanuel Bernard ba3639a25a HHH-4657 add support for DETACH
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18191 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-10 09:32:25 +00:00
Scott Marlow 49bc0e7acf comment change
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18190 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-10 00:34:12 +00:00
Scott Marlow cf0e1c6476 HHH-4546 JPA-2.0 locking support. Derby read and write pessimistic lock
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18189 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-10 00:33:22 +00:00
Galder Zamarreno 77e57b6727 Added JDBC transaction test.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18185 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-09 18:21:07 +00:00
Galder Zamarreno 16528acc0b [HHH-4520] (Infinispan second level cache integration can cache stale collection data) testManyUsers now enabled after ISPN-277 was fixed.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18184 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-09 18:20:38 +00:00
Hardy Ferentschik 6512e3e708 HHH-4655
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18181 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 23:24:39 +00:00
Steve Ebersole 02323188c6 HHH-4654 - Criteria quries must support referencing parameters by name
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18169 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 21:19:42 +00:00
Steve Ebersole 1005f19b1a HHH-3860 - Cascading performance problems when session contains many entities
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18168 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 18:56:15 +00:00
Emmanuel Bernard 48c2ec7e91 unwrap should raise a PE if the type is not unwrappable by the provider
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18166 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 16:32:59 +00:00
Emmanuel Bernard cab99355a9 remove getSupportedProperties(): it's no longer part of the spec
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18164 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 16:09:42 +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
Emmanuel Bernard c7149b0da4 Bind Hibernate Core deprecated lock modes for completeness and map UPGRADE_NOWAIT like PESSIMISTIC_WRITE with a timeout of 0
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18162 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 16:01:36 +00:00
Emmanuel Bernard e71c0e4ba4 add a comment on flush mode
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18161 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 15:40:12 +00:00
Emmanuel Bernard 084d84b8f8 Remove System.err.println oops
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18160 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 15:39:37 +00:00
Emmanuel Bernard 8eb02db44c HHH-4649 Properly bind Environment#GLOBALLY_QUOTED_IDENTIFIERS to orm.xml <delimited-identifier/>
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18159 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 14:20:56 +00:00
Steve Ebersole 6b9e796074 HHH-4553 - Hibernate doesn't support official JPA2 escape char for table name
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18158 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-08 13:14:47 +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