1. Class "model.Address" is listed in the persistence.xml file but not mapped stackoverflow.comI have created a JPA project. In that Eclipse displays the following error on the entity class. Class "model.Address" is listed in the persistence.xml file but not mappedHow am I ... |
2. Good way to handle large collection in a domain model - with JPA/Hibernate ORM? stackoverflow.comI have some |
3. JPA Mapping Issue - Modelling direction requested stackoverflow.comI'm having a problem modelling the following problem in JPA. I have a JPA Entity class 'User', like so: (accessors/mutators/extraneous fields/extraneous JPA configuration omitted for brevity)
|
4. NHibernate mapping with forking inheritance model stackoverflow.comI'm just starting out with NHibernate and am trying to do a mapping for my model. (this is a model-first, TDD approach, just creating the database now) My Class hierachy is something ... |
5. How to model this classes withN Hibernate and Fluent.NHibernate Maps? stackoverflow.comI'm using ASP.NET MVC with NHibernate and Fluent.NHibernate Maps. I would like to know how to map the classes on Fluent and to create the database tables on my MySQL:
|
6. How to map native query to one model class? stackoverflow.comHi I´m using Eclipselink and I did a native query to select some fields of 2 tables. I mapped my table Logins in a model class. I would not like to ... |
7. JPA Inheritance modelling problem stackoverflow.comhere's my problem. I have 3 classes, a parent class representing money flows. Two subclasses one for incomes and another for expenses. The thing is that I subclass to override behavior, ... |
8. Dynamic model in Nhibernate stackoverflow.comI use Dynamic model in Nhibernate. Like this :
|
9. Hibernate: How to model a double parent/child relationship stackoverflow.comI got a pretty simple parent/child relationship here, which looks like this: Email servers have n folders. Folders can have n (sub-)folders. Folders have a reference to their parent folder as well as to ... |
10. How to model this with JPA? stackoverflow.comI want to model a couple of object relations and I'm currently not sure about a smart way to do this. Let's assume a |
11. Entity hierarchy in Hibernate stackoverflow.comWhat's the proper way to create 2 entities where 1 is a parent of the other? For example, we have the following 2 tables:
Pretty simple, we have emails that go ... |
12. [Hibernate] How to model/map lookup tables coderanch.com |
13. Optimum Hibernate Mapping for a Tree Model coderanch.comHi, I'm new to Hibernate and i want to know which is the optimum technique(in terms of performance) to retrieve data in a tree model. To illustrate:- Product Table: |productId| productName| Description| parentproductId| I need to map this table to a product Class as follows:- class Product { private Integer productId; private String productName; private String product Description; private Integer parentproductId; ... |
14. Transitive persistence problem using parent/child model forum.hibernate.orgHi everybody I have problems using parent/child model. I followed Bid-Item example from the book "Java Persistence with Hibernate". Can anybody help me out? Here is the Bid class Code: @Entity public class Bid implements Serializable { @Id @GeneratedValue private Long bid_id; private String name; @ManyToOne ( targetEntity=Item.class, cascade = { ... |
15. How to model ManyToMany with an association class. forum.hibernate.orgI've spent the last day or two mulling over how to implement a relation in our database using NHibernate and can't seem to come up with something that works. So I'm hoping there is someone out there who can give me some advice on how best to go about doing this. I'm dealing with a legacy database so I can't change ... |
16. Mapping Domain Model By Annotation and XML forum.hibernate.orgHi I was wondering whether it's possible to map the domain models using both annotation and XML? I get a deployment error when I tried to create a relationship (@OneToMany) between an annotated model to an unannotated model. If some people on a team prefer annotation and others prefer xml, is there a way to make the two approaches work together? ... |
17. Domain model mapping - efficiency question forum.hibernate.org |
18. Using Hibernate Dynamic Mapping against a EAV model forum.hibernate.orgHello , We are creating an application that requires dynamic creation of objects and their attributes (which may be linked to other objects as well) .We are currently using an EAV model to handle this where they are stored as Attribute-Value pairs . We have also used hibernate dynamic mappings to retrieve these data's from a view(which is again created dynamically). ... |
19. Dynamic models and 1-N mapping forum.hibernate.orgHi, I implemented a dynamic model as the following CUSTOMER(1)--(N)ACCOUNTS. I wrote the XML mapping as the following: |
20. Inheritance model too weird for Hibernate to handle? forum.hibernate.orgHi there, First post here and hopefully not my last! I'm working on a project now where we're trying to replace our lame data access layer with Hibernate. Problem is that our current inheritance model is quite tricky to capture. This is a really interesting use case for Hibernate so hopefully I'll get some great responses! The database tables look like ... |
21. Best way to model map of maps forum.hibernate.orgHi, we currently have the situation where we need a many-to-many association using a map of maps. This is used to model language specific images if different types associated with a product, i.e. Product 1 language 'en' image of type 1 image of type 2 language 'de' image of type 1 image of type 2 We'd like to have the possibility ... |
22. How to model a double parent/child relationship forum.hibernate.org |
23. Creating a Hibernate mapping from a Cool:2E model : forum.hibernate.orgWe are currently porting 2E applications to Java and i am trying to generate as much as i can from the 2E model to help me create a Hibernate mapping file. This is proving to be very difficult as there is composite keys/a very complex data structure 700 tables +, a mix of Cool:Plex and Cool:2E tables. Has anybody had experierience ... |
24. modelling interface inheritance in hibernate forum.hibernate.orgHibernate is excelent in modelling implementation inheritance, where class A extends class B. Suppose now that for some reason (e.g., following some advice in the GoF book) we model domain objects using interface inheritance, so that our idiomatic java code would be as follows: interface A { //... } interface B extends A { //... } class AImpl implements A { ... |
25. How to map such meta-model, Thanks a lot forum.hibernate.org |
26. Dynamic mapping to plain object model forum.hibernate.org* How can the columns be mapped to the Map of FeaturePropeties for each Feature (e.g. Feature=City with attributes name,status,population,...)? * And is Hibernate capable to deal with 2 instances of the same class but mapped to different tables where the primary keys could be equal? * Does this make sense at all, or is the prefered way to generate JavaBeans ... |
27. Can This Data Model Even be Mapped with Hibernate? forum.hibernate.orgI'm trying to map to an existing datamodel for an older product we are migrating to Java. I have tried ever way to map this collection over the last few days with no success. Code: ----------------------- ------------------------ ----------------------- | Person ... |
28. Modelling a one-to-one, parent-child relationship forum.hibernate.orgFolks, I'm having conceptual problems with trying to model a particular relationship. What I need is a one-to-one, parent-child relationship. The Parent and Child tables have a common primary key, with a constraint from the Child table to the Parent. Currently, I'm modelling them as a primary-key-association one-to-one mapping as described in section 5.1.11 of the Hibernate docs, but this gives ... |
29. Map to Set of objects: Recommendations on how to model it forum.hibernate.orgHi guys - I have a model, which naturally feels like it wants to look like: Monday -> [ foo, bar, baz ] Tuesday -> [ x, y, z] So, from the main object you could: Set sites = foo.getSitesFromDay(Monday) and then sites would contain a foo, bar, and baz. Is there a nice clean way to do this? Or do ... |
30. Modelling constrained Inheritance forum.hibernate.orgI currently have a modelling problem , where I don't know how to model a simple composite-pattern. I have these classes: A is abstract B, C, D, E extend A I model the inheritance using @Inheritance(strategy=InheritanceType.JOINED) B cannot be contained in other classes(isRoot) B has a collection of sub-units, that can contain C and D C can only contain classes of ... |
31. Mapping a large information model with rich associations forum.hibernate.orgFolk, I am new to Hibernate but have not found relevant info for this question. I have a rich information model (IM) (the DMTF's CIM as mapped for Cisco System's needs). The IM is rooted in a single class, Top. Top is abstract. Top is used extensively as a member of associations so that the association behavior is generally inherited. In ... |
32. Dynamic Model Inheritance issue forum.hibernate.orgHibernate version: 3.0 I am facing Inherirance issues when trying to work with Dynamix models. My Mapping file: |
33. Mapping flat table to object model... forum.hibernate.orgNewbie Joined: Wed Jun 08, 2005 11:42 pm Posts: 4 I have a single flat table that needs need to get mapped into a small object model, ~6 levels. The mapping only needs to be read only and I have no choice in the underlying data structure, I can't change it. I would like to use hibernate but I am not ... |
34. creating an object model diagram from hibernate mapping file forum.hibernate.orgI just got a plotter printer and want to make pretty pictures of my object model as defined in my hibernate mapping files. What programs are people using to create object model diagrams from hibernate mapping files? I'd like to create diagrams quickly and be able to regenerate them often to keep them in sync with changes to the model. |
35. Dynamic Model and mapping suggestions forum.hibernate.orgHi Friends - I'd appreciate your expert thoughts and suggestions for the below requirement. We dont have a static entity model i.e. our table doesnt contain a fixed set of coulmns. Or to put in another way we doesnt want our CUSTOMER entity to contain just id, firstName, lastName and age. We want our entity to be generic (name=value pair) so ... |
36. Mapping question of an old poor model forum.hibernate.orgI have a very poorly modeled table which has the following columns: string_a string_b and string_c string_a, string_b are the composite key to this table. There can be many string_c objects for one string_a + string_b key. I would like to be able to load the objects in this table into one objects for a given key with the properties: stringA ... |
37. mapping / modelling question regarding lookup data forum.hibernate.orgMy (abstracted) problem is as follows: In my java domain model I have: Typically I would tend to model this in the DB as Now, my problem is, in a desktop swing UI I want to show all the possible Services with all their possible Practitioners. The user can select a subset of the Services and a subset of the Practitioners ... |
38. model and mapping problem forum.hibernate.orgHi, I have a problem concerning Hibernate. I work at an application which is based on Hibernate and MySQL as persistence layer. But I don't know how I should modell the following problem: I have 4 tables: 1. User - contains information for log in; 2. Manufacturer_employee 3. Retailer_employee 4. Other_employee The last 3 tables are very similar and store some ... |