1. Problem (NullPointerException) setting id properties forum.hibernate.org |
2. text property as natural id forum.hibernate.orgHi, It's clear that "text" type can't be used as identifier property, BUT I have an entity where the natural key IS a "text" field. I would like to somehow declare this field as |
3. How to make a set(?) use a property instead of the class id? forum.hibernate.orgHow can you make a Collection (set/list/array/etc.) use a field other than the class's id, as the collection's key? I'm asking because I'm only seeing references to the |
4. misses ID property...........xdoclet forum.hibernate.orgThis may not be a hibernate problem, as this is caused when generating the xml files using xDoclet. When generating the xml files I get the following error: Code: [hibernatedoclet] Generating mapping file for uk.ac.warwick.blog.model.subscriptions.SubscriptionItemFilter. [hibernatedoclet] uk.ac.warwick.blog.model.subscriptions.SubscriptionItemFilter [hibernatedoclet] (XDocletMain.start 53 ... |
5. "The id property is ignored for examples" forum.hibernate.orgHi, I got the above quote from a reply to a question posted in this forum. Problem is that in very rare circumstances this functionality is useful. In my case, I have a User table with a natural key on userId. The table also contains First Name, Last Name, etc. I have a screen in which a user can type substrings ... |
6. Special meaning of 'id' when naming properties? forum.hibernate.org15:07:56,579 DEBUG [JTATransaction] Looking for UserTransaction under: UserTransaction 15:07:56,580 DEBUG [JTATransaction] Obtained UserTransaction 15:07:56,580 DEBUG [JTATransaction] beginning new transaction 15:07:56,580 DEBUG [SessionImpl] find: from Bernd as b where b.id='asking for id' and b.notTheId='asking for notTheId' 15:07:56,581 DEBUG [QueryTranslator] compiling query 15:07:56,582 DEBUG [SessionImpl] flushing session 15:07:56,582 DEBUG [SessionImpl] Flushing entities and processing referenced collections 15:07:56,582 DEBUG [SessionImpl] Processing unreferenced collections 15:07:56,582 ... |
7. ID property not included in Criteria forum.hibernate.orgNewbie Joined: Fri Nov 11, 2005 4:42 am Posts: 17 Hi Everybody, I have some code that takes a domain model creates a Criteria then adds an Example created with the model. Then it looks for any properties in the model that are domain objects and adds subCriteria to the criteria. It does this recursively. Everything works fine except that the ... |