1. Hibernate not populate data from mapping table stackoverflow.comI have User class and Country class with respective tables. Country table data is fixed. I make a mapping table User_Country(userid, countryid) and following mapping in User class
|
2. JPA ManyToMany Not Populating Object Property stackoverflow.comIn JPA, I am trying to create an Update screen for an JPA object with a list of categories for that object. This is a many to many relationship. I am ... |
3. Hibernate - Collection not populating all children stackoverflow.comI have been having a very weird issue in hibernate. We are using Grails and GORM to develop an application. The behavior is the following. Lets assume I have a relationship Department -> Employees. Basically ... |
4. hql - how to populate a child entity's lazy collection when fetching the parent stackoverflow.comsuppose i have @Entity A, which has an eager @ManyToOne to @Entity B, and this B has a lazy (default) @OneToMany to a collection called "images" i want to do something like:
|
5. Mapping did not populate field?? forum.hibernate.orgNewbie Joined: Thu Jan 28, 2010 8:38 pm Posts: 2 I tried several variations but none worked for me. The annotated mappings did not take place (i.e. mapped fields not populated by Hibernate). I knew I am doing something wrong or lack thereof some essentials. If I may run this by you, please help point out what I need to do ... |
6. populating children from subcriteria forum.hibernate.orgMerry Christmas everyone, I have an advanced search feature in which you can specify search criteria for the root object's children and their children and so on... What I want to do is have Hibernate return a List of root objects which are populated only with children that meet the search criteria. For example, if my root object is Planet and ... |
7. Lazily populating ManyToOne relationships forum.hibernate.orgWhen I initialize a proxy for a class with a large number of ManyToOne properties - it appears to be constructing a large, complex and slow query doing left outer joins to >10 tables (one for each ManyToOne). Is there a way to delay retrieving a property until it is required? At the moment when I retrieve any property on the ... |
8. Selectively populating collections for mapped Objects forum.hibernate.orgI am new to Hibernate and have spent the last several days going through documentation and tutorials, and I am having difficulty understanding exactly how it is possible to to only fetch data for certain collections for a particular mapped object. Take the following example: Let's say I have a table called PROJECTS, which has many-to-many relationships with 20 other tables, ... |
9. Populate not mapped properties inside a domain object forum.hibernate.orgHibernate version: 3.2.4.sp1 Hello, is it possible to populate properties in a domain object that are not mapped ? e.g We have a query Code: select klasse, ktion1.bezugText as notMappedProp1, ktion2.bezugText as notMappedProp2 from BzaKlasse klasse, BzaKlassification ktion1, ... |
10. Mapping many to many -- doesnt populate the table in SQL (!) forum.hibernate.orgHi ! So here's the deal: I have 3 tables in SQL .... Nationality , Student and Nationality_Student. In nationality table i have 3 records like (italian , french , german ). When i insert a student info i set his nationaliaties through a HashSet in java. The problem is that the student is inserted correctly (like his first name , ... |
11. Parent to Child populating forum.hibernate.orgI have a class called sales and this has a composite id composed of id, cid. I have a child of sales called Line, which has the above 2 as foreign keys. SAles class has a property line( a set) the Line class doesnt have a property to Sales classs. what should I do to make the line populate when sales ... |