1. How to query for map element in hibernate? stackoverflow.comI have a hibernate mapping which looks like this:
|
2. Using nhibernate |
3. Hibernate criteria query to match against all child collection elements stackoverflow.comThis question is very similar to this one but the responses were minimal to that question. I have a parent class with a Set of child entities. The child entities are ... |
4. JPA: When to choose Multivalued Association vs. Element Collection Mapping stackoverflow.comI would like to better understand the differences between (1) a traditional Multivalued Relationship/Association
and
(2) the JPA2 Collection of Embeddable (and basic) ... |
5. NHibernate 3.0 Linq query against stackoverflow.comI have a mapping that looks like this:
|
6. How to configure an Element-collection to map an existing DB table in JPA orm.xml configuration? stackoverflow.comI have migrated an app from a full-Hibernate featured one to a JPA/Hibernate based-one and I have a problem with my JPA mapping. We have managed to use orm.xml to map our ... |
7. Error on HQL Query distinct count of child collections (in elements error) stackoverflow.comFirst of all, please forgive me for my vocabulary is a little limited with NHibernate so I might call something the wrong thing...here is my question: Result I am looking for is ... |
8. Validating Hibernate mapping file with -set- and -join- elements coderanch.comUsing Hibernate 3 I have a problem validating a mapping file that contains |
9. Why are Hibernate mappings elements not symmetrical? coderanch.com |
10. hibernate, join fetch existing collection in elements of map coderanch.comHello everybody, So.. im trying to bring some relationchips in a HQL query where the structure begins to be so complicate to be developed. I have something like this: public class Fabrica { private Map |
11. deletion of child elements when trying to delete parent forum.hibernate.orgNewbie Joined: Thu Feb 03, 2011 7:44 am Posts: 1 tHIS IS MY CODE : wHEN I AM TRYING TO DELETE THE DATA FROM PARENT TABLE IT IS NOT AUTOMATICALLY DELETING FROM THE CHILD TABLE...HERE ARE MY ENTITY CLASSES - STUDENT.JAVA(parent table) and Phone.java(Child table) Code: import java.util.List; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import ... |
12. Getting Exception when adding a |
13. map the properties of a map like in a dynabean element forum.hibernate.org |
14. problem referencing a map element in HQL forum.hibernate.orgThe query I am trying to get to work is select r from QuoteRequest r where r.coverSheet.actions['Provider_In'].parameter.stringValue = '123456' that is - each QuoteRequest has a coversheet component which has a Map called actions whose values are the parameters i am interested in here is the mapping |
15. question about new elements and maps forum.hibernate.org |
16. How to map a collection and a pointer to an element of it forum.hibernate.org |
17. A Map collection having elements being Sets ? forum.hibernate.orgWell, I know how I could return the complete list of dependent versions for a version.... Set dependentVersion version.getDependencies(); Having a Set mapped with "many-to-many" (or with an intermediate class) But, then I would have to filter that set for component of the specific type I want. I would like to avoid this. I would like version.getDependencies() to return a Map ... |
18. Querying by child Collection element properties forum.hibernate.org |
19. How to operate in HQL with a Map element forum.hibernate.orgI have mappings like this: public class Foo { private Long id; private Map barMap; ...//getters, setters } public class Bar { private Long id; private String name; } with class Foo, the key of barMap is an object of Bar, and the value is a Date. |
20. Mapping fails to parse with discrimator element forum.hibernate.org |
21. Problem with mapped query and |
22. How to map a map-key as a property of the element? forum.hibernate.orgMap |
23. invalid mapping The content of element type "class" forum.hibernate.orgNewbie Joined: Mon Jul 11, 2005 8:34 am Posts: 12 Hi everyone, I've searched all over for this error but I can't figure out what's going on! :( I've already double checked the database name, fields, types, package paths against the xml and classes and they all match. and I only get the error on one particular hbm.xml mapping file when ... |
24. Error Deleting Collections which are child elements forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: HIbernate 3.1 I have a parent class and it has a one-to-many relation to a child class meaning there are a collection of child elements belonging to the parent class. When i try to delete the parent by setting the identifier of the parent object, it doesn't cascade the ... |
25. How to query single elements in mapped maps forum.hibernate.orgHibernate version: 2.18 Mapping documents: Code: |
26. cascade delete does not delete child elements forum.hibernate.orgAuthor Message orome Post subject: cascade delete does not delete child elements Posted: Thu Jan 19, 2006 6:28 am Newbie Joined: Wed Dec 14, 2005 6:50 am Posts: 17 We are stuck in the following problem: In a parent-child mapping situation we use cascade (Ibistarget=parent, Ibisaction=Child), so the children are managed by the parent. This works fine as long ... |
27. Problem persisting forum.hibernate.orgAuthor Message abc-xyz Post subject: Problem persisting |
28. Mapping : specify where-clause for join element. forum.hibernate.org |
29. Map/Set updating every element on save forum.hibernate.orgI started a topic a while back and I've narrowed the problem. If you resave an in-memory object, Hibernate will UPDATE every associated Set/Map element even though they haven't changed. If I load the object from Hibernate (replacing my in-memory version), then this extraneous UPDATE problem doesn't occur. This seems like a bug, different saving behavior depending on whether it's the ... |
30. Mapping repeatable xml elements forum.hibernate.orgNewbie Joined: Thu Mar 08, 2007 4:28 pm Posts: 2 I am trying to persist some xml with xml-relational mapping using Hibernate. The xml instances have multiple instances of repeatable elements. E.g., Code: |
31. Referencing "map" valued collection elements in HQ forum.hibernate.org |
32. Can not avoid joins to child elements forum.hibernate.orgHi, I am using a table per class strategy ( |
33. Mapping a Collection of Elements using an SQL Query forum.hibernate.orgHello fellow hibernaters, I have a persistent entity with a property that is a collection of primitives (a Map |
34. How to map a forum.hibernate.org |
35. How to map a forum.hibernate.orgmsenin wrote: My short-term solution is ugly but it works. I'd like to solicit a better idea. I guess, the ideal solution would be a hibernate mapping. My first attempt was to use map-key-many-to-many (like yourself), only to discover that the index column had to be unique (ie. the primary key of the join table is a combination of the two ... |
36. HQL can't handle elements in set mapped by key forum.hibernate.orgUsing Hibernate 3.2.5 We have entities User, Role, Group. The User class has a Map of Roles to sets of Groups. Since the value class of a map must be a mapped entity itself, we created another mapped entity "GroupSet". class User { private Map |
37. Persisting xml data including child elements forum.hibernate.orgNewbie Joined: Sat Jul 26, 2008 10:13 am Posts: 3 Hi I am attempting to persist xml data into a database with Hibernate. The Account table is created and the elements are persisted, but I cannot get the child Contact elements to be persisted, although the Contact table is created. I have tried many mapping file configurations but no matter what ... |
38. Document root element "hibernate-mapping", must ma forum.hibernate.orgHello, all! problem: +-----------------------------------------------------------------------------+ %tomcat_home%\logs\stdout_20090311.log: +-----------------------------------------------------------------------------+ 14:27:35,406 INFO Environment:520 - Hibernate 3.3.0.CR1 14:27:35,406 INFO Environment:553 - hibernate.properties not found 14:27:35,406 INFO Environment:687 - Bytecode provider name : cglib 14:27:35,421 INFO Environment:604 - using JDK 1.4 java.sql.Timestamp handling 14:27:35,500 INFO Configuration:1437 - configuring from resource: /hibernate.cfg.xml 14:27:35,515 INFO Configuration:1414 - Configuration resource: /hibernate.cfg.xml 14:27:35,593 INFO Configuration:563 - Reading mappings from resource : ... |
39. map index element must specify a type (?) forum.hibernate.orgNewbie Joined: Wed Jul 22, 2009 6:46 am Posts: 3 Hi, I am quite new to hibernate so this might be an newbe-problem: I am trying to persist a collection (HashMap |