1. NHibernate - How to write this Query: Select parents & find child for each parent that matches a condition stackoverflow.comOK, first my simple Domain Model is 2 classes with a one-to-many relationship, a simple Parent -> child relationship. A 'Tweet' has one or more 'Votes', but each Vote belongs to ... |
2. where to find duke's bookstore code that has JPA mappings stackoverflow.comIs there a place where I can find |
3. Hibernate Criteria query: finding matching records in a ManyToMany relationship coderanch.comHello All, I have a ManyToMany relationship between Content and Keyword entities (one Content instance contains a List of Keyword references). I'd like to find Content instances whose list of Keywords contains one or more of the Keywords in a provided list. I can accomplish this with the following Criteria query if I provide a list of Keyword IDs rather than ... |
4. how to find all its child and grandchild...? forum.hibernate.orgThe Location has a many-to-many relation with itself as below: |
5. trouble on one-to-many: father could not find children forum.hibernate.orgNewbie Joined: Wed Dec 24, 2003 9:17 pm Posts: 6 |
6. session.find passing in mapped object? forum.hibernate.orgI was just wondering if this has been thought up. Is there a reason we don't have a session.find(hibernateObject) method in Hibernate? I was thinking that if we stuck to just 1 mapped object at a time, would it be possible to get a new instance of an object, set some parameters and just call session.find(hibernateObject) on it? That would eliminate ... |
7. session.find passing in mapped object? forum.hibernate.orgI was just wondering if this has been thought up. Is there a reason we don't have a session.find(hibernateObject) method in Hibernate? I was thinking that if we stuck to just 1 mapped object at a time, would it be possible to get a new instance of an object, set some parameters and just call session.find(hibernateObject) on it? That would eliminate ... |
8. mapping compile can't find class during deployment forum.hibernate.org - |
9. Problem finding not referenced entities and inheritance forum.hibernate.org |
10. addClass cannot find mapping files forum.hibernate.org |
11. how to find if a map has a certain value forum.hibernate.orgHi, I am quite new to HQL so this problem may have some easy solution already. I know you can use elements function to find out if a collection contains a certain element (e.g. from Category c where :item in elements(c.items), to quote an example in Hibernate in Action). Is there a similar function for map? For example can you write ... |
12. HAR deployer doesn't find the mapping file ??? forum.hibernate.orgHi, I'm new in using Hibernate and build an HAR-Archive with the following structure: firsthibernate.har: Code: META-INF . hibernate-service.xml . MANIFEST.MF de fn first common hibernate ... |
13. how to find the discriminator value???inheritance problem forum.hibernate.orghello sir, i have a problem.i have 2 classes named Experienced and Fresher.they both inherit CandidateInformation class.Now i know the primary key but i dont know whether the object is of which of the above mentioned 2 classes.the objects are supposed to be created before and i just know the primary key and thats it.i need to find out which object ... |
14. hbm2JavaTask in Hibernate 3 can't find mapped class forum.hibernate.orgNewbie Joined: Wed May 25, 2005 11:32 am Posts: 14 I am converting hibernate 2.1.8 to Hibernate 3.0.4. I am using Hbm2javaTask from hibernate-tools-3.0alpha1 to generate java from hbm files. But Hbm2JavaTask could not find any mapped classes. I have generated class in the same directory as hbm files, and I even add java file to the class path and add ... |
15. HibernateUtil cannot find mapping file during configure() forum.hibernate.orgI cannot tell from either the manual nor the api exactly how Configure.configure() finds the mapping file(s). When the code trys - in HibernateUtil - to configure, setting up to buildSessionFactory(), it craters at runtime with an ExceptionInInitializerError reporting in the details that it can't find my mapping file. The mapping file is located in two places: in the same directory ... |
16. Metadata to find name of key column in Map forum.hibernate.org |
17. One-to-many and many-to-many to find grandparents of child forum.hibernate.orgHello all, I'm getting duplicate grandparents when querying the top of a one-to-many, then many-to-many relationship. Hibernate version: 3.1.2 Code between sessionFactory.openSession() and session.close(): return session.createQuery( "select v from Vendor v " + "inner join v._projects as p " + "inner join p._users as u " + "where u._id = ?" ).setLong( 0, _user.getId() ).list(); Name and version of the database ... |
18. Find mappings for Hibernate forum.hibernate.orgHi guys! I'm new to Hibernate, I'm composing some HQl dynamically and I need to find the corresponding mapping of TABLE_NAME and COLUMN_NAME to objectType and propertyName at runtime. To be clearer, let's exemplify with an excerpt from one of the Hibernate mapping files: Code: ....................... |
19. Map not finding a key forum.hibernate.orgHibernate version: 3.2. Mapping documents: Code: // Map Snippet of AppliedPolicy |