1. hibernate and composite-element. how to remove?! coderanch.com |
2. Can composite-elements be referenced in other mappings? forum.hibernate.orgI have a situation similar to this election schema: Person ------- Id Name Election --------- Id Date Candidate ----------- Person_Id Election_Id Party So my hibernate mapping for Election would look like this: Code: |
3. N - 1 composite element filter forum.hibernate.orgNewbie Joined: Wed Feb 09, 2011 11:09 am Posts: 1 Hi forum! I need some lights in order to follow my way. I have Category entity that contains CategoryDescriptions. I've mapped them as composite-element bag collection: Code: |
4. Filter() on composite-element's -- possible? forum.hibernate.orgOk, I'm sure you're right but I'm not getting anywhere. My attempt at rewriting my previous example as an ordinary query is looking like this: Code: Query query = session.createQuery("select count(*) from SomeElement as se where se.myProperty = :someVal"); query.setParameter("someVal", someVal); where SomeElement is a POJO and myProperty is a many-to-many association to the same POJO using a composite element defined ... |
5. one-to-many for elements with composite identifiers forum.hibernate.org |
6. composite-element forum.hibernate.orgI am using mysql. I have the follwing mapping file. Here FullArticle extends from Article. Also FullArticle has a collection of authors which are mapped using composite element. When I load FullArticle and do a Collection authors = fullArticle.getAuthors(), null value for authors is returned |
7. Hibernate 2.0 dtd composite-element does not allow composite forum.hibernate.orgI have added a component to a composite element in my hibernate mapping file and the dtd does not support this. Is it ok to modify the dtd to support? If not, why isn't it supported. The strange thing is that my schemaupdate will complain: org.xml.sax.SAXParseException: The content of element type "composite-element" must match "(parent?,(property|many-to-one|nested-composite-element)*)". but still create me the structure ... |
8. Problems with map and composite-element forum.hibernate.org.. |
9. composite-element and MappingException: no persister for forum.hibernate.orgHello, I am using Hibernate 2.1.2, and am running into an odd problem. I have a class that has a Set of objects defined as composite-elements. There is no mapping document for the element, but there is a mapping file for the holding class. That snippet is: |
10. Maps with composite elements broken in Hibernate 2.1.3? forum.hibernate.orgRegular Joined: Tue Oct 07, 2003 10:20 am Posts: 77 I've just upgraded from Hibernate 2.1.2 to Hibernate 2.1.3, and am experiencing an issue with a mapping for a Map with a composite-element. When doing an update on my parent object, an exception is thrown that didn't occur in version 2.1.2. However, this exception is only thrown if you use the ... |
11. Map key and index as a part of the composite-element forum.hibernate.orgI need to map the key and index of the |
12. Problem with composite-element and composite id when used to forum.hibernate.orgHi all I have a class A which contains a list of elements of type B. I've mapped this relationship as a composite-element collection. This works fine for saving a transient instance of A (and its related B's). The problem is when I load an instance of A its list of B elements is empty. If the id of A is ... |
13. idbag and composite-element forum.hibernate.orgIs it possible to map a many-to-many association that contains extra properties on the join table with an |
14. Many-to-Many Composite element confusion forum.hibernate.orgNewbie Joined: Mon Feb 09, 2004 11:14 am Posts: 16 I have read several documents, but have not seen a complete example useing the many-to-many composit-element. 1. It seems odd that I have to insert the parent and then child and then establish the associations. Have I done this correctly? See my Junit test below. 2. I can read the parent ... |
15. Wired behavior of composite-element forum.hibernate.orgHibernate version: 2.1.6 Mapping documents: |
16. How to understand the 'many-to-one' in composite-element ? forum.hibernate.orgHi, A question on the 'many-to-one' in ternary composite-element. Let's say I have this mapping: |
17. How to get a columnIterator() of a composite-element? forum.hibernate.orgHibernate version: h3 CVS I can not get a way to iterate the columns of a composite-element. Does anyone have an idea how to get one? See comment at the end of the code... Any help is appreciated! Code: private PropertyImpl initializeProperty(org.hibernate.mapping.Property hibernateProperty) throws MetadataException, MappingException { PropertyImpl property ... |
18. many-to-many composite-element problem forum.hibernate.orgNewbie Joined: Wed Oct 06, 2004 4:39 pm Posts: 17 Hi, I have a many-to-many association between Grupo <---> Usuario, where the association have an attribute (Class GrupoUsuario). I am using a composite-element mapping. When I load a 'group' with 'users' associated, i obtain a exception in the client when try to calculate the hashcode in the class 'GrupoUsuario', because the ... |
19. Strange composite-element behavior forum.hibernate.orgHibernate version:2.1.6 Mapping documents: |