Commit Graph

700 Commits

Author SHA1 Message Date
Steve Ebersole 9e95d41689 HHH-6371 - Develop metamodel binding creation using a push approach 2011-07-13 08:57:11 -05:00
Steve Ebersole 66bd796063 HHH-6371 - Develop metamodel binding creation using a push approach 2011-07-13 08:54:31 -05:00
Steve Ebersole 594f689d98 HHH-6371 - Develop metamodel binding creation using a push approach 2011-07-13 08:45:52 -05:00
Steve Ebersole 5efd0a8471 HHH-6371 - Develop metamodel binding creation using a push approach 2011-07-13 08:45:52 -05:00
Steve Ebersole 182150769a HHH-6371 - Develop metamodel binding creation using a push approach 2011-07-13 08:45:52 -05:00
Hardy Ferentschik 99f8d26270 HHH-4630 Simplifying test and applying formatting style 2011-07-13 11:47:38 +02:00
Hardy Ferentschik 3ec6c11f12 HHH-4630 fix for criteria join on a composite identifier 2011-07-13 11:47:30 +02:00
Gail Badner 3dd9d37eec Merge branch 'HHH-6418' 2011-07-12 14:26:59 -07:00
Gail Badner ad3b58f5e2 HHH-6418 : org.hibernate.metamodel.relational.AuxiliaryDatabaseObject extends org.hibernate.mapping.RelationalModel 2011-07-12 14:26:08 -07:00
Gail Badner 30843f2032 HHH-6416 : Move AuxiliaryDatabaseObject into Database 2011-07-12 13:44:07 -07:00
Hardy Ferentschik d58bb5a103 HHH-6392 making the simple class name the default jpa entity name 2011-07-12 15:02:35 +02:00
Hardy Ferentschik 959056dee7 HHH-6392 Making sure that overrides get applied and adding more tests 2011-07-12 14:57:14 +02:00
Hardy Ferentschik 593066b7f3 HHH-6392 Formatting 2011-07-12 12:07:55 +02:00
Hardy Ferentschik 2500a70668 HHH-6392 Applying overrides for mapped superclasses 2011-07-12 11:03:35 +02:00
Hardy Ferentschik c2c3de9f90 HHH-6392 Extracting the attribute overrides. Next step is to apply the overrides when creating the attribute bindings 2011-07-12 11:03:35 +02:00
Strong Liu 1801faa1b3 HHH-2614 (I forgot to push ..., thanks hardy) 2011-07-12 09:28:46 +08:00
Hardy Ferentschik 50ac18c5c3 HHH-2614 Fixing test now that there is a DerbyTenSevenDialect 2011-07-11 13:49:26 +02:00
Hardy Ferentschik 77004f5fe2 HHH-6392 Starting to refactor JandexHelper 2011-07-11 13:26:23 +02:00
Hardy Ferentschik a353d34f78 HHH-6392 Introducing a container for the attribute override values 2011-07-11 13:26:23 +02:00
Strong Liu b413299847 HHH-2614 Blob Length Set to 255 By Default With Derby DB 2011-07-11 16:54:17 +08:00
Emmanuel Bernard 310c0441bb HHH-6421 Reduce log level of LazyInitializationException from ERROR to TRACE 2011-07-08 18:12:30 +02:00
Tomaz Cerar e47460317c sql server dialect fix 2011-07-08 17:57:35 +02:00
Strong Liu 3075d7d7ee typo in javadoc 2011-07-08 22:25:10 +08:00
Emmanuel Bernard c5e91f6bda HHH-6419 Let SessionImplementor#getFactory pass even out of Tx in TL bound sessions 2011-07-08 01:40:53 +02:00
Emmanuel Bernard c48d4208db HHH-6417 Implement EventType#toString 2011-07-07 23:51:57 +02:00
Hardy Ferentschik b600f027a4 HHH-6278 Added some comments and renamed method in EntityClass - getPrimaryTableName to getClassNameForTable 2011-07-07 11:51:02 +02:00
Strong Liu ce47766281 HHH-6278 quote all db identifiers
also this commit contains code that make annotation binder applying naming strategy
2011-07-07 11:24:54 +08:00
Gail Badner 5457b6c707 HHH-6411 : Integrate new metamodel into SingleTableEntityPersister 2011-07-06 15:08:36 -07:00
Gail Badner d981f54942 HHH-6407 : Add SimpleValue.getAlias(Dialect) and implement in subclasses 2011-07-06 14:31:41 -07:00
Emmanuel Bernard f0a8fe5643 HHH-6408 Be tolerant with empty (ie not null) properties 2011-07-06 23:09:59 +02:00
Emmanuel Bernard 426406ef32 HHH-6404 Move Hibernate Search integrator from Hibernate Core to Hibernate Search 2011-07-06 21:46:05 +02:00
Hardy Ferentschik 94aea008d3 HHH-6394 fixing the check for resultClass in named native query 2011-07-06 17:50:26 +02:00
Hardy Ferentschik bcdefd10a6 HHH-6289 Adjusting log levels and fixing formatting and javadocs 2011-07-06 17:12:10 +02:00
Hardy Ferentschik d1eec59c08 HHH-6381 Adding a actual assertion which tests the optional part. Also applying formatting styles. 2011-07-06 14:46:07 +02:00
David Mansfield 20559966b3 HHH-6381 - handle optional=true joins for SecondaryTables in the JoinedSubclassEntityPersister 2011-07-06 13:58:28 +02:00
Gail Badner 7c84b08391 HHH-6389 : Add TableSpecification.getQualifiedName(Dialect) and implement in subclasses 2011-07-05 21:01:11 -07:00
Gail Badner 3b22a9fd29 HHH-6387 : Add EntityBinding.getFilterDefinitions() and addFilterDefinition() 2011-07-05 14:08:17 -07:00
Hardy Ferentschik ec482d3d0e HHH-6201 Create attribute and attribute bindings for mapped super classes 2011-07-05 16:19:35 +02:00
Hardy Ferentschik 546ba3c550 HHH-6201 Introduce explicit maps for id-, simple- and association-attributes 2011-07-05 16:14:32 +02:00
Hardy Ferentschik d3f20f44ea HHH-6201 Import cleanup 2011-07-05 16:08:51 +02:00
Hardy Ferentschik 2ebe0c4005 HHH-6201 Changing toString implementation to just print the simple class name 2011-07-05 16:08:50 +02:00
Hardy Ferentschik 390d2fd00d HHH-6201 Adding todo 2011-07-05 16:08:50 +02:00
Strong Liu 2061fd266a HHH-6262 fix test failures 2011-07-05 14:16:02 +08:00
Strong Liu e8b682b405 HHH-6386 sybase improvement 2011-07-05 12:32:42 +08:00
Strong Liu 793f317ea9 HHH-6262 bind @EmbeddedId 2011-07-04 14:45:19 +08:00
Gail Badner 88f69a135b HHH-6365 : Use Identifier.toIdentifier() to create column names 2011-07-01 19:18:30 -07:00
Gail Badner 6499491374 HHH-6366 : Add integer value to uniquely identify Table and InLineView objects for column aliases 2011-07-01 14:35:49 -07:00
Gail Badner 4febfe4d82 HHH-6365 : Use Identifier.toIdentifier() to create column names 2011-07-01 13:45:05 -07:00
Gail Badner 8a5415d367 HHH-6359 : Integrate new metamodel into entity tuplizers 2011-07-01 12:26:17 -07:00
Gail Badner 86e0afce22 HHH-6352 : Change EntityBinding.getAttributeBindingClosureSpan() and getAttributeBindingClosure() to return data for declared attribute bindings 2011-06-29 15:35:07 -07:00
Gail Badner 1d26ac1e12 HHH-6360 : Build basic properties from an AttributeBinding 2011-06-29 14:51:43 -07:00
Gail Badner 0f88ec8b71 HHH-6372 : Provide a temporary way to initialize basic types in metamodel 2011-06-29 14:08:02 -07:00
Hardy Ferentschik ff312720ce HHH-6173 allow embeddable classes to use inheritance as well 2011-06-29 22:21:10 +02:00
Hardy Ferentschik 1ec38d23ab HHH-6173 Introduced org.hibernate.metamodel.source.annotations.attribute package and moving attribute related classes from org.hibernate.metamodel.source.annotations.entity into it.
Also refactored generic type resolution via class mate
2011-06-29 22:21:10 +02:00
Hardy Ferentschik 96b4d410c4 HHH-6173 the makeXYX methods in EntityBinding now take the actual attribute instead of just the attribute name 2011-06-29 22:21:09 +02:00
Hardy Ferentschik 295e67201c HHH-6173 Creating domain component for embeddables 2011-06-29 22:21:09 +02:00
Hardy Ferentschik d86ce7e68a HHH-6173 formatting 2011-06-29 22:21:09 +02:00
Hardy Ferentschik 157d50b434 HHH-6173 Fixing some bugs and adding some improvements pointed out by Strong 2011-06-29 22:21:09 +02:00
Hardy Ferentschik 08ed4c1e80 HHH-6173 Passing association and attribute overrides to EmbeddedClass 2011-06-29 22:21:09 +02:00
Hardy Ferentschik fcbca08a1f HHH-6173 making ConfiguredClass a base class for EnityClass and EmbeddedClass 2011-06-29 22:21:09 +02:00
Strong Liu babeacefb0 HHH-6379 create EntityState enum to replace int constants in AbstractSaveEventListener 2011-06-29 17:56:42 +08:00
Gail Badner 0c757327bd HHH-6372 : Provide a temporary way to initialize basic types in metamodel 2011-06-28 13:30:26 -07:00
Strong Liu ffb14b28b7 HHH-6368 remove deprecated hibernate annotations 2011-06-28 10:29:16 +02:00
Gail Badner 919cdf7c69 HHH-6372 : Provide a temporary way to initialize HibernateTypeDescriptor.explicitType for "basic" types 2011-06-27 19:59:51 -07:00
Hardy Ferentschik f4cc72b2d3 Revert "HHH-6368 remove deprecated hibernate annotations"
This reverts commit 5781948ab2.

Re-adding the removed annotations since they are still used.
2011-06-27 14:03:39 +02:00
Strong Liu 5781948ab2 HHH-6368 remove deprecated hibernate annotations 2011-06-27 16:17:47 +08:00
Gail Badner 83ba7be3a3 HHH-6364 : Add AttributeBinding.getValuesSpan() and Tuple.valuesSpan() 2011-06-24 14:42:49 -07:00
Gail Badner b174d78358 HHH-6358 : Integrate new metamodel into EntityMetamodel 2011-06-23 19:06:23 -07:00
Gail Badner 196f78c6a4 HHH-6352 : Temporarily change EntityBinding.getAttributeBindingClosureSpan() and getAttributeBindingClosure() to return info for ID only 2011-06-23 18:48:44 -07:00
Gail Badner 85245e5945 HHH-6362 : EntityBindingStateImpl.getOptimisticLockMode() returns annotations-specific value 2011-06-23 16:52:29 -07:00
Gail Badner ceb9c0fef2 HHH-6352 : Add EntityBinding.getAttributeBindingClosureSpan() and getAttributeBindingClosure() 2011-06-22 16:40:28 -07:00
Strong Liu 592921ba5c HHH-6348 POST_COMMIT_DELETE listener does not get executed 2011-06-22 17:45:59 +08:00
Gail Badner 2815409af7 HHH-6346 : Add EntityBinding.entityTuplizerClass(); change getEntityPersisterClass() to return Class<EntityPersister> 2011-06-22 00:21:07 -07:00
Steve Ebersole 159f6205f9 HHH-6340 - Revisit EntityBindingState 2011-06-22 01:05:29 -05:00
Gail Badner 6c9493017a HHH-6343 : Remove JavaClassNameResolver because it is not used 2011-06-21 21:56:52 -07:00
Gail Badner 149771b6d8 HHH-6342 : Add EntityModeEntitySpecifics.getTuplizerClass() 2011-06-21 19:34:06 -07:00
Gail Badner e2ff8ed542 HHH-6341 : Add AttributeBinding.isBasicPropertyAccessor() 2011-06-21 16:06:52 -07:00
Gail Badner 2129f94aa3 HHH-6335 : Change PojoEntitySpecifics to use JavaType for entity and proxy classes 2011-06-20 15:21:05 -07:00
Steve Ebersole 86e98b2432 HHH-6334 - Create JavaType for the metamodel 2011-06-20 15:15:36 -05:00
Steve Ebersole 26a47fdc34 HHH-6333 - Create DeferredInitializationValue 2011-06-20 12:43:14 -05:00
Steve Ebersole 4a4f636caf HHH-6330 - Remove entity mode switching capability 2011-06-19 22:12:18 -05:00
Ocean-Blue afc406a03b Add comments to setDate, setTime, setTimestamp methods to reduce confusion to the Hibernate newbies in future. 2011-06-16 12:36:10 -07:00
Hardy Ferentschik 1e88107f3e HHH-6173 Some initial refactorings to start processing @Embedded and @Embeddable 2011-06-16 18:40:26 +02:00
Hardy Ferentschik 7700719306 HHH-6173 Removing unused import 2011-06-15 22:35:50 +02:00
Hardy Ferentschik 5c012f63e5 HHH-6287 Adding description to junit assertions 2011-06-15 12:01:56 +02:00
Strong Liu 0eb87b73b9 HHH-6287 bind @Table.uniqueConstraints 2011-06-15 11:42:26 +02:00
Strong Liu ddc1bccee6 add log 2011-06-15 17:21:16 +08:00
Strong Liu 80916b95fe add logging of initator 2011-06-15 16:44:53 +08:00
Gail Badner 8aeaf28408 HHH-6321 : Add org.hibernate.metamodel.binding.CascadeType.toCascadeStyle() 2011-06-14 17:00:43 -07:00
Gail Badner 7e2e1e3ea7 HHH-6319 : Add getter for attribute node name 2011-06-14 15:36:42 -07:00
Gail Badner 496b508c73 HHH-6320 : Add boolean values and getters to EntityIdentifier indicating if an ID is embedded or "identifier mapper" 2011-06-14 15:20:44 -07:00
Gail Badner f12aad3493 HHH-6318 : Change EntityIdentifier.attributeBinding to be type SimpleAttributeBinding 2011-06-14 13:54:24 -07:00
Gail Badner 4ef305ae2c HHH-6318 : Change EntityIdentifier.attributeBinding to be type KeyValueBinding 2011-06-14 12:51:51 -07:00
Hardy Ferentschik b6f9d9d5d7 HHH-6300 Adding support for @BatchSize and @RowId 2011-06-14 16:17:23 +02:00
Hardy Ferentschik 24bd525693 HHH-6300 Adding support for custom sql via @SqlInsert, @SqlUpdate, @SqlDelete and @SqlDeleteAll 2011-06-14 12:49:15 +02:00
Strong Liu a2982ea939 format 2011-06-14 16:57:45 +08:00
Strong Liu 85ce03969d format 2011-06-14 15:57:43 +08:00
Hardy Ferentschik 002779dffb HHH-6300 Adding support for @Synchronize annotation 2011-06-13 16:06:33 +02:00
Hardy Ferentschik cbd92d05bc HHH-6300 Creating initial version of EntityBindingStateImpl. Removing un-used setters in EntityBinding 2011-06-13 14:28:50 +02:00
Strong Liu 92ad3eed80 HHH-6297 remove legacy cache api 2011-06-09 12:18:59 +08:00
andy.miller dd46fe071a HHH-6258: Change the un-released batch message from WARN to DEBUG for performance improvement. 2011-06-08 12:16:03 -05:00
andy.miller bf066b8121 HHH-6258: Performance enhancement to toFragmentString method to only append to the StringBuffer, and not do inserts into the beginning, which causes additional buffer allocations and copies that are unnecessary. Also, changed the StringBuffer to a StringBuilder. 2011-06-08 12:16:03 -05:00
andy.miller 02a866c702 HHH-6258: Fixed a problem with a conflict with Gale's change to this class. I had to add the two local variables that she didn't have that I added. 2011-06-08 12:16:03 -05:00
Andrig Miller 09a9b65201 HHH-6258: Fixed typo when getting the JdbcServices.class from the serviceRegistry. I forgot to build the source before committing. 2011-06-08 12:16:02 -05:00
Andrig Miller e01bb8a911 HHH-6258: Wrap trace and debug log statements to lessen the load on JBossLogManagerLogger.doLog. This improved throughput quite a bit. 2011-06-08 12:16:02 -05:00
Andrig Miller a917bb4b40 HHH-6258: Cached JdbcServices and Dialect in local variables to lessen load on AbtractServiceRegistryImpl.localServiceBinding(java.lang.Class). This improved throughput. 2011-06-08 12:16:02 -05:00
Andrig Miller abe51d5b35 HHH-6258: Cached service registry classes in local variables to remove load from AbstractServiceRegistryImpl.locateServiceBinding(java.lang.Class). This resulted in a decent improvement in throughput. 2011-06-08 12:16:02 -05:00
Steve Ebersole 8593cf91cd HHH-6206 - Explicitly add antlr jar to transitive dependencies 2011-06-08 11:12:56 -05:00
Steve Ebersole 98e7f9537f HHH-6229 - Clean up MappingDefaults 2011-06-08 10:53:18 -05:00
Gail Badner 6d52bcff6b HHH-6217 : Create EntityBindingState and implement for HBM XML 2011-06-08 02:23:58 -07:00
Gail Badner f89afec721 Merge branch 'HHH-6110' 2011-06-07 10:46:43 -07:00
Strong Liu 2077b5f43c HHH-2176 DB2 setMaxResults problem in Hibernate 3.1.3 2011-06-07 17:54:18 +08:00
Gail Badner 814b514933 HHH-6110 : Integrate new metamodel into persisters 2011-06-07 02:41:49 -07:00
Gail Badner ba44ae26cb HHH-6110 : Integrate new metamodel into persisters 2011-06-06 18:13:46 -07:00
Strong Liu 9c90c25fea HHH-6294 use enum instead of constant 2011-06-07 00:17:18 +08:00
Strong Liu 72aedc8682 HHH-6294 use enum instead of constant 2011-06-07 00:16:33 +08:00
Strong Liu 1320208baf HHH-4943 ilike support is incomplete 2011-06-06 16:42:13 +08:00
Strong Liu c6db5cfdcb HHH-4943 2011-06-06 14:19:05 +08:00
Strong Liu 4c98afbbad HHH-6293 avoid create unnesserary Integer object 2011-06-06 11:01:01 +08:00
Steve Ebersole baeb6dc400 HHH-6291 - Basic MetadataImpl redesign 2011-06-05 18:51:04 -05:00
Steve Ebersole b8b003efa3 HHH-6291 - Basic MetadataImpl redesign 2011-06-05 18:51:03 -05:00
Strong Liu 252eee4dd2 HHH-6292 avoid Boolean instance creation 2011-06-04 12:36:11 +08:00
gbadner 198aa1c242 Merge pull request #99 from gbadner/HHH-6290-root
HHH-6290 : Add EntityBinding.isRoot()
2011-06-03 15:14:58 -07:00
Steve Ebersole e68f4fb085 HHH-6281 - Basic HbmBinder cleanup 2011-06-03 16:28:09 -05:00
Gail Badner 834fa2140f HHH-6290 : Add EntityBinding.isRoot() 2011-06-03 10:49:15 -07:00
Strong Liu 7beb1f2601 HHH-6246 ConfiguredClass should honor default access from persistence-metadata-unit 2011-06-02 12:48:38 +08:00
Steve Ebersole e0d90cee49 HHH-6279 - Bind database object definitions 2011-06-01 16:42:23 -05:00
Hardy Ferentschik 1776207c8b HHH-6171 adding comment 2011-06-01 14:53:10 +02:00
Hardy Ferentschik 6fe3072976 HHH-6271 Making sure orm.xml version 1 is supported 2011-06-01 13:30:54 +02:00
Strong Liu 7a18764893 HHH-6273 - Bind identifier-generator definitions (was committed by Steve) 2011-06-01 16:31:01 +08:00
Strong Liu 32a320d078 HHH-6261 2011-05-31 17:39:11 +08:00
Hardy Ferentschik ec0e823b64 HHH-6261 formatting 2011-05-31 11:16:32 +02:00
Strong Liu 19f629b461 HHH-6261 Bind @GeneratedValue 2011-05-31 10:46:17 +02:00
Strong Liu 3ff1b440c2 HHH-6261 2011-05-31 10:46:17 +02:00
Strong Liu 625d781af1 HHH-4489 need method "refresh(String entityName, Object obj)" 2011-05-31 14:53:17 +08:00
Strong Liu eb5bc1609d HHH-4489 need method "refresh(String entityName, Object obj)" 2011-05-31 14:53:16 +08:00
Hardy Ferentschik debd342e48 HHH-6263 Minor coding changes and removing unclear comment 2011-05-30 11:41:25 +02:00
Gail Badner 151d9ce316 HHH-6232 : Minor correction adding discriminator value to DiscriminatorBindingState 2011-05-30 10:53:12 +02:00
Gail Badner 5df5883e31 HHH-6232 : Add discriminator value to DiscriminatorBindingState 2011-05-30 10:53:12 +02:00
Gail Badner 792c85a053 HHH-6274 : Logging format error causes many test failures 2011-05-27 15:43:06 -07:00
gbadner b11dafbc26 Merge pull request #92 from gbadner/HHH-6267-metadata-to-svc-initiators
HHH-6267 : Plumb MetadataImplementor into service initiators registered i
2011-05-27 15:00:47 -07:00
Steve Ebersole 66347adca6 HHH-6272 - More logging fix ups 2011-05-27 13:00:33 -05:00
Gail Badner bd8e7e37f0 HHH-6267 : Minor fixes for Plumb MetadataImplementor into service initiators 2011-05-26 16:10:22 -07:00
Gail Badner 6b3d428366 HHH-6267 : Minor fixes for Plumb MetadataImplementor into service initiators 2011-05-26 15:35:57 -07:00
Gail Badner 8a0eeedec8 HHH-6267 : Plumb MetadataImplementor into service initiators registered in SessionFactoryServiceRegistry 2011-05-26 15:35:57 -07:00
Steve Ebersole d99f2ad2da HHH-6266 - Bind filter definitions 2011-05-26 15:58:53 -05:00
Steve Ebersole fd25e7704b HHH-6264 - Bind typedef information 2011-05-26 15:26:40 -05:00
Hardy Ferentschik 227141e643 HHH-6263 Binding @Proxy. Adding some tests 2011-05-26 18:56:47 +02:00
Hardy Ferentschik bd900d9bb1 HHH-6263 Refactoring HibernateXmlBinder and HibernateMappingBinder. Removing the former and renaming the latter to HbmBinder 2011-05-26 14:10:10 +02:00
Gail Badner 86ddbc09d9 HHH-6110 : Integrate new metamodel into persisters 2011-05-25 23:01:31 -07:00