1. (N)Hibernate: core/master mappings with relationships stackoverflow.comI am starting a job with a mid size company working mostly on writing custom apps that interact with their ERP system. This is my first time doing this sort ... |
2. What's the difference between different mapping types in Hibernate? stackoverflow.comI'm a newbie in Database design and in Hibernate too. I started reading the documentation for Hibernate. It talked about "Collection Mapping", "Association Mapping" and "Component Mapping". I am not understanding ... |
3. Hibernate Immutable Value Object stackoverflow.com
Everything is fine until here. But if I call:
|
4. Nhibernate/Hibernate, lookup tables and object design stackoverflow.comI've got two tables. Invoice with columns CustomerID, InvoiceDate, Value, InvoiceTypeID (CustomerID and InvoiceDate make up a composite key) and InvoiceType with InvoiceTypeID and InvoiceTypeName columns. I know I can create my ... |
5. Good design of mapping Java Domain objects to Tables (using Hibernate) stackoverflow.comI have a question that is more in the realm of design, than implementation. I'm also happy for anyone to point out resources for the answer and I'll gladly, research for myself. Highly simplified ... |
6. Hibernate: Better monolithic class or many class maps? stackoverflow.comI am making a website with GWT and using Hibernate to connect to the database. Every time a user loads a page and it is required to grab information off the database. ... |
7. Fine-grained object model in hibernate stackoverflow.comIn the Hibernate in Action (Manning publication), A major objective of the Hibernate project is support for fine-grained object models, which we isolated as the most important requirement for ... |
8. Hibernate Mapping One-to-Many, weird example stackoverflow.comWe are trying to build a One-to-many relation. Trying to understand how this works, we stumbled across this example, which shows how to do it. The example shows a reasonable ... |
9. JPA: when to use a ManyToOne relationship vs. value? stackoverflow.comI'm a newbie in JPA, and this question is about recommended ways to work with JPA relationships. I have entities Data and Subject, I can either create a ManyToOne relationship between them, ... |
10. Mapping tables to two inherited tables in Hibernate stackoverflow.comI am trying to map a set of tables that have a complicated relationship between them. I have the following tables with fields:
|
11. How to properly implement a owner-owned-owner2 association in java with hibernate? stackoverflow.comI have looked for information on how to implement the following association in hibernate and although the hibernate manual is very thorough, I haven't found the following use case addressed. I have ... |
12. Hibernate design dilemma; parent - child relationship with address link stackoverflow.comI have an existing entity design. There is an |
13. Hibernate one-to-one link table mapping + design suggestion coderanch.comHi ranchers, I'm facing some difficulty mapping a one-to-one relationship on a link table. I'm not entirely sure what the best way to go about this is...so any suggestions on mapping or alternative design would be most welcome. If we imagine this scenario. Let's say we have a table Product and a table PriceFormula. These tables are completely independant of each ... |
14. Doubt on table design and Hibernate mapping coderanch.comSuppose that I want to represent a loan application. This loan application must have one main applicant, and zero or more joint applications. Obviously, the Java class representation would be like this: public class LoanApplication { Borrower mainApplicant; List jointApplicants; ... } The joinApplicants list will contain instances of Borrower. The mainApplicant and jointApplicants instances can only exist within the life ... |
15. Hibernate object mapping... design issue? coderanch.comSo this is my first post, as a little background I am very new to this. I haven't gone to school for this but have been working hard on java for a while now. I just passed my Sun Certified Java Programmer certification and try to learn more everyday. Now I think my problem might be a design issue and hope ... |
16. HQL excludes children not matching criteria - as designed? forum.hibernate.orgHi, I have the following simple data model. TableA's relationship to children is 1 to many. The child table has a FK that points back to the PK of TableA, a standard 1:n relationship. I have an HQL query in the form of from TableA a left join fetch a.children ch where a.attributeA = ' |
17. Ternary mapping : design question forum.hibernate.orgHi Everybody, I'm an Hibernate newbie from now 2 weeks and I'm still confused about how to cleary design ternary associations. Here's the asssociation I want to map : Code: ObjectA <--(0,n) -->[ternary_association] <-- (1,1) --> RightType ... |
18. Foreign Key Mapping Design question forum.hibernate.orgHi I have a wizard style interface in my web app that goes through 4 pages to add an 'Offence' Entity. I am also trying to keep the user state request scope. On page 1, the user selects entity 'Employee', so I then keep the employee id as a hidden field for the remaining 3 pages. On page 2, the user ... |
19. Mapping design forum.hibernate.org |
20. What is a better approach? - A mapping design question forum.hibernate.orgHere is the situation I have: The class A has a many-to-one relationship with the class B, while the class B has another many-to-one relationship with the class C. The class B refers the class C by object. A main DB operation on the class A, other than saving, is retrieving all object with a HQL, somthing like "from A order ... |
21. Mapping Design Question forum.hibernate.orgHi, I am fairly new to Hibernate but I've got a design question about how best to build a query. I new to design a query that will return a list of Companies based on Location and Business Type I have 3 classes for each thing - Companies - RegisteredLocation - BusinessType Each class has it's own table. There are also ... |
22. Design problem with interfaces and inheritance forum.hibernate.orgI have a design problem in an application that could be extended by other programmers. Well, suppose I have to map an object customer which, in my default implementation has only two fields, name and address. I want to define Customer as an interface: public interface Customer { public String getName(); public void setName(String name); public String getAddress(); public void setAddress(String ... |
23. Complicated Hibernate Mapping - seeking design advice forum.hibernate.orgI am using Hibernate 3.0.5 with Oracle 10g: In my database, I have 3 tables: PALETTE - ID (String-type GUID) - NAME (String containing values such as 'Default user palette", "Custom user palette 1") COLOR - ID (String - 'human' defined values such as 'bgcolor', 'font1', 'font2' for developers to use) - NAME (String containing values such as 'Background Color', 'Primary ... |
24. Design question: Mapping multiple Set of similar objects forum.hibernate.orgHibernate version: 3.0.6 Name and version of the database you are using: MySQL I have a design best practices questions. Let's say I have an class that has 3 java.util.Set which I want to map. Code: package domain.tool; import java.util.Set; public class Tools { private Set |
25. mapping style/db design debate in need of opinion forum.hibernate.orgGood afternoon. As the project I'm working on has grown, one of the domain objects is growning a bit large for some folks taste (70 fields). This of course translates to 70 columns in the DB. We're having a debate over how to manage this... The attributes all clearly belong to the entity in question, so I content they all belong ... |
26. Design issue - unsure of how to map this forum.hibernate.orgHibernate version: 3.2 So I have a bit of a design issue that I figured I would throw out here to see if any of you have done something similar. I'm sure you have, it's not a terribly unique problem, I am just having trouble wrapping my head around how it should work. I am building an application where different customers ... |
27. inheritance and design in calendar application forum.hibernate.orgHi All, Technical Info: DB- Mysqul 5.0 Hibernate version 3.2 I having some design difficulties in my calendar application. The tricky part is the setting up the meeting class: public class Meeting { private Long meetingId; private Date startMeetingDate; private Date endMeetingDate; //if it reccurence it can be null; private User user; private Route route; //use for reccurence 0- Sunday until ... |
28. A common question on table design and hibernate mapping forum.hibernate.orgDear all, Maybe this is a db design problem. I have a simple scenario and quite new to ORM concepts. There are 3 tables / entities in my demo app; 1) user, 2) group, 3) accessRule 1 user can have multiple group (ie. 1 to many relationships) and 1 group can have multiple accessRule (ie. 1 to many relationships) so with ... |
29. Design Suggestions / Inheritance? forum.hibernate.orgHi, I am new to Hibernate, but have managed to get it up and working for most of my needs. However, there's one thing i'd hope someone would be willing to throw suggestions at: I have the classes Patronym, Pseudonym and Group which all extends the class Stakeholder. 1. A patronym (persons real name) has references to which groups it is ... |
30. How to design a manytomany with aditional columns? forum.hibernate.orgHi, I have a User and Contract. This is a many to many relationship but I need to define aditional values in the "join" table so I guess I have to create a UserContract join table. What is the Right Way to model this problem namely: primary keys, embeddedId, etc? I'm using JPA and hibernate. thanks. |
31. inheritance design issues forum.hibernate.orgHello, I am using hibernate 3.2, and oracle 9.2.2. I am having some issues and not sure the best approach to take. I was interested in using the table per hierarchy design for an application. However, the tables are already written and the field constraints are all set to not null. Thus, this approach will not work for me. I am ... |
32. Design / mapping question forum.hibernate.orgI am fairly new to Hibernate and have some questions surrounding design and implementation. A simplified description of what I would like to persist is the following: A User contains a list of Items. Each Item has a parent id pointing to a parent Item. Each Item can be related to many users (many-to-many). Each Item can have multiple parents for ... |