Commit Graph

164 Commits

Author SHA1 Message Date
Scott Marlow 9256bc30e5 HHH-4685 Make sure bidirectional @*To* works from an embedded object to another entity
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18543 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-13 19:35:54 +00:00
Hardy Ferentschik e8df1d1579 HHH-4282 Added the test attched to the jira issue to ensure the problems is really fixed by HHH-4528
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18542 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-13 18:04:02 +00:00
Hardy Ferentschik 8bed8a1c22 HHH-4783
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18524 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 21:00:11 +00:00
Scott Marlow d86de21e15 HHH-4679 Make sure @AssociationOverride support the dot notation.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18523 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 20:19:32 +00:00
Hardy Ferentschik e95ae257d1 HHH-4691 - xml access type support for element collection. As side effect started to suport element-collection in xml. Needs to be completed though.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18522 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 20:14:31 +00:00
Scott Marlow 9d49153a93 HHH-4679 Make sure @AssociationOverride support the dot notation.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18521 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 19:44:37 +00:00
Scott Marlow 87cf4555f6 HHH-4679 Make sure @AssociationOverride support the dot notation. Package name change.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18520 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 19:40:17 +00:00
Hardy Ferentschik 4224e74d1a HHH-4691 - xml access type support for embedded-id and embedded
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18519 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 18:50:42 +00:00
Emmanuel Bernard b1f925458e HHH-4782 supports @AssociationOverride.joinTable
HHH-4679 add tests for dot notations in @AssocuiationOverride

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18518 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 18:48:42 +00:00
Scott Marlow d5f9bd5377 HHH-4679 Make sure @AssociationOverride support the dot notation
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18515 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 16:03:48 +00:00
Scott Marlow 45d0e696b4 HHH-4598 An embeddable class may contains collection of basic types or embeddable objects
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18510 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-12 01:16:55 +00:00
Hardy Ferentschik 50cbcd3e00 HHH-4691 - xml test files for access configuration via xml
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18507 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-11 20:27:12 +00:00
Hardy Ferentschik 1c25ab12ef HHH-4691 - Added support for access tye configuration via xml
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18506 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-11 20:23:08 +00:00
Emmanuel Bernard e44b5f197d HHH-4771 @ElementCollection fk column should default to entityName_columnNameOfOwningId
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18455 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-08 16:58:56 +00:00
Emmanuel Bernard afbf1be5b3 HHH-4686 Implement @MapKeyEnumerated
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18435 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-07 17:45:29 +00:00
Scott Marlow 9ef2317e28 HHH-4689 Make sure @OrderBy supports dotted notation to point to embedded properties
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18434 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-07 17:41:05 +00:00
Emmanuel Bernard a96f7bf729 HHH-4687 implement @MapKeyTemporal
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18433 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-07 17:33:23 +00:00
Emmanuel Bernard 8b061f9933 HHH-4353 support JPA 2 default column naming for collections of basic types (and still honor the legacy approach)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18428 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-07 13:56:47 +00:00
Scott Marlow b24ea51873 HHH-4688 Make sure @OrderBy works for @ElementCollection. move test case
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18427 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-06 18:49:52 +00:00
Emmanuel Bernard 658df91a5e HHH-4283 fix the incorrect test case and add a proper exception when the user error occurs
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18421 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-06 17:28:23 +00:00
Scott Marlow 71d9459a20 HHH-4688 Make sure @OrderBy works for @ElementCollection. Handle default case
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18419 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-06 16:59:34 +00:00
Hardy Ferentschik bd6a77a0dc HHH-4527 - added another test to verify that @Access specified on embeddable directly gets picked up.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18418 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-06 14:37:38 +00:00
Hardy Ferentschik 2dd470af1f HHH-4527 - added handling of proper default access propagation for class hierarchies and embedded classes (components)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18417 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-05 21:51:35 +00:00
Scott Marlow 5509ab643d HHH-4684 Make sure @Lob works with @ElementCollection
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18416 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-05 18:50:48 +00:00
Emmanuel Bernard 39dd795e40 HHH-4753 Default table name for @CollectionTable is not inferred correctly according to spec requirement. Legacy names still supported. Fixing NPE in some cases
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18415 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-05 18:00:34 +00:00
Scott Marlow a3dd6de70f HHH-4683 Make sure @Enumerated works with @ElementCollection. Added Map test.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18414 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-05 16:55:15 +00:00
Emmanuel Bernard 76202814a6 HHH-4753 Default table name for @CollectionTable is not inferred correctly according to spec requirement. Legacy names still supported.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18413 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-05 16:11:14 +00:00
Emmanuel Bernard fc66b8a964 Extract Schema helper methods
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18407 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-05 09:45:30 +00:00
Scott Marlow 19f9443b6e HHH-4753 Default table name for @CollectionTable is not inferred correctly according to spec requirement
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18406 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-05 03:18:23 +00:00
Scott Marlow 39b098aac3 HHH-4753 Default table name for @CollectionTable is not inferred correctly according to spec requirement
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18405 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-05 03:16:05 +00:00
Sharath Reddy d12c535f66 HHH-4653
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18403 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-04 20:12:33 +00:00
Emmanuel Bernard 43dd13073d HHH-4752 support no prefix on @AttributeOverride and @ElementCollection (legacy "element" prefix used if @CollectionOfElements is used)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18399 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-04 18:50:45 +00:00
Emmanuel Bernard ef1cb9f066 HHH-4352 support for key. and value. for Map and @AttributeOverride. Managed to keep support for legacy names as well.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18393 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-04 16:47:08 +00:00
Scott Marlow 41b12a6479 HHH-4682 Check that @CollectionTable (or its absence) defaults to the right table/column names
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18392 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2010-01-04 16:03:21 +00:00
Scott Marlow 165f2e5f73 HHH-4601 implement orphanRemoval for OneToMany. OneToOne is not yet done (see HHH-4725)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18318 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-22 18:07:38 +00:00
Emmanuel Bernard a87e031bd5 HHH-4667 accept orm 2 and orm 1 files. Also improved error reports
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18263 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-18 10:02:26 +00:00
Hardy Ferentschik 4a9d8dcf0b HHH-4527 - first cut for supporting JPA2 @Access annotation. Not quite complete and needs some more tests.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18260 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-17 21:14:07 +00:00
Emmanuel Bernard fbf7b91d4d HHH-4711 HHH-4667 validate persistence.xml and make sure it works for both persistence_1_0.xsd and persistence_2_0.xsd
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18259 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-17 15:34:04 +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
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
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
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
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
Steve Ebersole a2bf14ae7c HHH-4553 - Hibernate doesn't support official JPA2 escape char for table name
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18148 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-12-06 22:20:58 +00:00
Emmanuel Bernard 6458ff4771 minor doc enhancement
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18103 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-30 16:50:25 +00:00
Emmanuel Bernard 1ca018960e HHH-3164 add test
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18026 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-23 18:08:09 +00:00
Hardy Ferentschik 546b13a7dd HHH-4529 Added some test entities
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17992 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-16 14:52:30 +00:00
Steve Ebersole 3ac574d7da HHH-2990 - Bad usage of ClassLoader.loadClass() for Java6 in SerializationHelper$CustomObjectInputStream - deserialization bottleneck for arrays
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17978 1b8cb986-b30d-0410-93ca-fae66ebed9b2
2009-11-13 19:04:09 +00:00