1. problme de la lecture de fichier de mapping forum.hibernate.org |
2. Many to many mapping forum.hibernate.orgHibernate version: 3.1 Name and version of the database you are using: mySQL 5.0 - INNODB Hey, I need to have a sophisticated many-to-many mapping (or so I think). The problem is kind of hard to explain so I have made a quick muck up of the tables I would use if I were to make it without Hibernate. Code: CREATE ... |
3. one-to-one Mapping Example or Guidance forum.hibernate.orgI have 2 tables that use the same primary key to link each other on a one-to-one basis. Can someone point me to an example of such a situation that includes what the Java class files look like and the mapping files. I've found a lot of examples, but they tend to show just the mapping file and I don't know ... |
4. Mapping question forum.hibernate.orgI have looked and looked, and been unable to find the solution for this problem. Assume I have two tables: ProjectTypeA, ProjectTypeB Both ProjectTypeA and ProjectTypeB have a list of tasks to be completed. The information required for the tasks is identical. In the interest of reusing objects, I have a single object called a Task which is stored in a ... |
5. Question about mapping. forum.hibernate.org |
6. How to map URI forum.hibernate.orgWhy is converting it to a string ugly? If you're planning on storing it in a single column in the DB, then there's no alternative. If you want to separate the URI into its five component parts and store then separately, then yes, use a UserType. But if you're just storing the string, then converting it to a string is perfect, ... |
7. Problem with EntityMode.MAP forum.hibernate.org |
8. Multiple Updateable Mappings? forum.hibernate.orgHi, I am looking at the feasibility of moving a project from TopLink to Hibernate. We are using DB2 as the database. One of the limitations we have with TopLink is that it only supports one updateable mapping per table. Is Hibernate able to support multiple updateable mappings to the same table? We can sort of workaround the limitation in TopLink ... |
9. "Including" mappings for a sub-project forum.hibernate.orgIs there any way to create mapping documents that "include" other mapping documents? I'm looking for the ability to create a single mapping file that uses some sort of include directive to combine all the per-class mapping files in a sub-project, so I can then save effort by referencing this one file from the hibernate.cfg.xml when I draw together sub-projects (components) ... |
10. One to Many && Many to One mapping. forum.hibernate.orgHi, I am trying " |
11. How good are you in Hibernate? A mapping challenge forum.hibernate.orgAuthor Message a_shanmugam Post subject: How good are you in Hibernate? A mapping challenge Posted: Fri Apr 28, 2006 4:16 pm Newbie Joined: Mon Apr 24, 2006 2:01 pm Posts: 13 Hibernate version: 3.1.3 Is it possible to create a one-to-may relation between two tables with the may side table having no primary keys ? Here are the tables: ... |
12. How to reload classes implementing Map interface forum.hibernate.org |
13. Problem in |
14. Problem retrieving a one-to-one mapping forum.hibernate.orgI have 2 classes that have a one-to-one relationship. If I remove the relationship from the mapping file, I can retrieve both objects. But if I specify the relationship in the hbm.xml file I get the following exception. Has anyone seen this? 14:51:00:490|DEBUG|org.hibernate.util.JDBCExceptionReporter|could not load an entity: [ownit.value.Tracking#component[loanNumber,settleDate]{loanNumber=1001858421, settleDate=2006-01-03 00:00:00}] [select tracking0_.loanNumber as loanNumber20_0_, tracking0_.settleDate as settleDate20_0_, tracking0_.yield as yield20_0_, tracking0_.gainAAdj ... |
15. Problem retrieving a one-to-one mapping forum.hibernate.orgI am using hibernate 3.1.3 with j2sdk1.4.2 with a Sybase12.5 database. My problem is this - I have 2 classes Funding and Tracking. There is a one-to-one relationship from Funding to Tracking. If I do not define the relationship in Hibernate and manage the relationship "manually" there is no problem reading, writing, and deleting both objects. But if I use the ... |
16. Mapping question forum.hibernate.orgI need to map an association between two classes A and C, such that A will own a collection of C's. However, the association between A and C is a composite key of two fields, one of which is a member of A, and the other is accessible only through a linking table B. In SQL terms we are talking about ... |
17. one to many bi-directional mapping forum.hibernate.orgQuestion 1: How to map complex object in Hibernate Following is the scenario; need to persist the data of Parent object into PARENT Table and data of Child object into CHILD Table. PARENT & CHILD has one to many & bi-directional relation. Parent has a set of children & child can also know about their parent. class Parent { int parent_Id; ... |
18. Problem with one-to-one mapping forum.hibernate.orgHello... i'm trying to use a simple one to one mapping but i had an exception when i try to save a new instance of my object "Figlio", my settings are: Hibernate version: 3.1.3 Mapping documents: |
23. Mapping question forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: Hibernate 3.1.3 Hello, people I have a question related to the mapping of two tables, A and B, which have the almost the same columns (table B has all the columns of table A plus one column of it's own). Table A represents some of the application data, table ... |
24. question for many-to-many mapping forum.hibernate.org |
25. How to map a class to more than one record? forum.hibernate.org |
26. Map surrogate class forum.hibernate.org |
27. best practice relational mapping forum.hibernate.orgWas wondering what the folks think about the best practice. Maybe this is a more object model question than an ORM type of question. Lets say there is a rule that says 1 Student has Many Cars. But 1 Car can belong only to 1 Student. so.. Student has a one-to-many relationship to Car What are the merrits for this to ... |
28. Mapping reference??? forum.hibernate.org |
29. double[] mapping problems forum.hibernate.orgHibernate version: 3.1.3 I'm unable to define a mapping for a simple double[] property! I have in my code a property like: private double standardParallel; with getter and setter and mapped like: |
30. many-to-many mapping forum.hibernate.orgI have 3 tables The first one: PRODUCTS ------------------- id name ------------------- The second one: _____________ SPECIFICATIONS --------------------------- id name dat beg_dat end_dat ____________ the link between them is many-to-many, but the "link table" must have not 2 fields(product_id,specification_id). It should have structure like this LINKSPECPROD ---------------------------- ID* ---------------------------- spec_id --------------------------- product_id --------------------------- price --------------------------- How can i do it? ps ... |
31. Mapping Question forum.hibernate.orgHi All, I have a somewhat complex mapping (compared to what I have implemented previously). I have not been able to get the hibernate mapping to work as it appears the dtd doesn't like the xml structure of what I am trying to do. Here is my class hierarchy. I have main class A, with 3 subclasses, B C and D. ... |
32. Many-To-One mapping! forum.hibernate.orgIs it possible to use Many-To-One association with not-null="false" ??? [b]Hibernate version: 3.0[/b] Hi, i have folowing mapping accosiation: |
33. Mapping two class with a many-to-one on a common third forum.hibernate.orgHi, I am using hibernate 3.0 and I wonder what is the correct mapping to take advantage of transitive persistence on a many-to-one relationship of two classes pointing on a third. Basically, a Person has 1..n address(es) a company has 1..n address(es) I'd like to have a single table for all addresses I am only looking for an uni-directional relationship : ... |
34. Problem with unidirecional mapping forum.hibernate.orgHello, I'm developing a blog that is based in the User entity of our system (the blog is just a module of the system), so a Post is owned by an User, and the User entity doesn't know the existance of the Blog module. What I can do, to when a user be deleted, all the posts owned by it, be ... |
35. how to properly map this case forum.hibernate.org |
36. Mapping Question forum.hibernate.orgHi, I need some help in mapping two Objects A & B described below along with their Tables. There is a one-to-many relationship between Object A and Object B. But I want to do a one-to-one mapping between these two objects (A combination of "aId" & "bId" makes it one-to-one). Can some one tell me how to map these two objects ... |
37. HIbernate -inner class in mapping forum.hibernate.orgHi all i am using static inner class and try to make the databse by setting property |
38. Parser problem on map of map forum.hibernate.org |
39. mapping question forum.hibernate.orgHibernate version: 3.1.3 Hello all i have the following database table definition: Code: * KursEdit ... |
40. a Map mapping question. forum.hibernate.orgYou have to use an intermediate entity, you cannot do it directly. That is, your POJO will contain a Map |
41. Many-To-Many Mapping Issue forum.hibernate.orgCould you be a bit more precise about your mapping and your issue ? Which code is in your finder ? How is it called ? Sometimes, it's totally normal that Hibernate must delete all lines of a collection to only leave the good ones, because it's the only way to do so. But knowing if the behaviour is normal or ... |
42. Mapping Many-to-Many but mainly used as 1-to-Many? forum.hibernate.orgHibernate version: 3.1.1 Suppose I have 3 tables, a many-to-many. USERS: (UID,UNAME,STATE_ID) STATES: (STATE_ID,SNAME) USER_STATES: (UID,STATE_ID) My User object HAS a list/set of states, but my States object DOES NOT have a list/set of users (as i dont think that's usually queried that way). So how should I map this case? Its not many-to-many on the object side because States has ... |
43. Basic mapping problem? forum.hibernate.orgHi I am having what seems to be a pretty basic mapping problem, well not that basic considering I cant seem to find a solution. I have this problem... (using simple data and not my actual database) I have two tables in my database lets say Table 1 = Cat and Table 2 = Kittens so the relationship is a one-to-many ... |
44. How to reuse common mapping body forum.hibernate.orgI use entity-name feature to map 2 tables to single pojo class (com.TextItem). How can I reuse mapping body? Is there any inheritance feature so I can get rid of obvious duplication? |
45. Mapping question forum.hibernate.orgcreate table Aumentos ( aumentos_id int not null primary key, ....... ) create table Aumentos_Detalle ( aumentos_id int not null, mod_sec_cc_id int not null, mod_sec_especialidad_id int not null, primary key (aumentos_id, mod_sec_cc_id, mod_sec_especialidad_id) ) create table Aumentos_Valor ( aumentos_id int not null, mod_sec_cc_id int not null, mod_sec_especialidad_id int not null, mod_sec_plan_id int not null, primary key (aumentos_id, mod_sec_cc_id, mod_sec_especialidad_id, mod_sec_plan_id) ) ... |
46. Mapping question forum.hibernate.orgcreate table Aumentos ( aumentos_id int not null primary key, ....... ) create table Aumentos_Detalle ( aumentos_id int not null, mod_sec_cc_id int not null, mod_sec_especialidad_id int not null, primary key (aumentos_id, mod_sec_cc_id, mod_sec_especialidad_id) ) create table Aumentos_Valor ( aumentos_id int not null, mod_sec_cc_id int not null, mod_sec_especialidad_id int not null, mod_sec_plan_id int not null, primary key (aumentos_id, mod_sec_cc_id, mod_sec_especialidad_id, mod_sec_plan_id) ) ... |
47. Mapping Confusion forum.hibernate.orgHibernate version: 3.1 Greetings, I'm in the process of refactoring a legacy app we use in-house and thought I would integrate Hibernate. I have the following table schema and am having a heck of a time trying to figure out how to map it. My original idea was to map the CATEGORY_* tables as joined-subclasses of the CATEGORY table each with ... |
48. Simple Map Question forum.hibernate.orgHello, I have two tables both are entity (both have a primary key). cat and format I would like to query cat and bring back all format_name where the format_id(s) are equal. This simple query mysql> select cat.cat_name, cat.cat_id, format.format_name -> from cat, format -> where cat.format_id = format.format_id; Currently I have two separate mappings. I need to create a mapping ... |
49. What is the best way to map this? forum.hibernate.orgIt's not directly possible, but it's easy to fake it. Set it up as a |
50. mapping immutable class in hibernate?? forum.hibernate.orgHi MonetaryAmount class from HiA book is immutable but when I try to code it using xDoclet and Spring's HibernateTemplate class, I run into a series of problems, in the end, to make it work I have to turn it into a mutable class with setter fields for Currency and BigDecimal properties. E.g. Mapping for Item class with component mapping to ... |
51. Mapping Problem forum.hibernate.orgHibernate version:3.0 Mapping documents:Diffuseur.hbm.xml, CorrespondanceDiffuseur.hbm.xml Code between sessionFactory.openSession() and session.close(): Full stack trace of any exception that occurs:Exception lors de l'envoi de l'vnement contexte initialis (context initialized) l'instance de classe d'coute (listener) com.plsvista.listeners.InitialHibernate java.lang.ExceptionInInitializerError at com.plsvista.listeners.InitialHibernate.contextInitialized(InitialHibernate.java:25) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3212) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3554) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native ... |
52. One to one mapping confusion forum.hibernate.orgAuthor Message GojiraDeMonstah Post subject: One to one mapping confusion Posted: Wed Jul 26, 2006 11:31 am Newbie Joined: Thu Jul 13, 2006 8:19 pm Posts: 3 Greetings, I have two classes, and two corresponding tables: User and Credentials. A User should have only one Credentials and vice-versa. I have read the Hibernate literature on one-to-one mappings, but I ... |
53. Problem with multiple mappings of the same class forum.hibernate.orgAuthor Message peholmst Post subject: Problem with multiple mappings of the same class Posted: Thu Jul 27, 2006 7:02 am Newbie Joined: Wed Jul 26, 2006 7:49 am Posts: 2 Location: Finland Greetings from a sunny Finland to everyone! Hibernate version: 3.2.0 RC2 Mapping documents: Shortened to include only the affected classes: Code: |
54. many-to-many mapping question forum.hibernate.org |
55. How to get the result as Map forum.hibernate.org |
56. mapping an interface? forum.hibernate.orgpublic interface Component { void start(); void stop(); } public class MyComp implements Component { ... } public class Server { Component comp; void setComponent(Component c) { comp = c; } // component is a part of the server, but may vary in implementation } |
57. Mapping forum.hibernate.orgI just moved the address type from the address table to the person_address table but I dont want to change my classes - only the mapping file. I have 3 tables: person (person_id, last_name, ...) person_address (address_id, address_type, person_id) address(street, city, ...) I have 2 classes: public class Person { private Set addresses = new HashSet(); private String lastName; .. } ... |
58. Strange mapping forum.hibernate.orgI've a DB table called MYTABLE with the following columns: | Prim. Key | X | Y | z | ------------------------- |...................|....|.....|....| I've a domain named CHILDOFMYOBJECT which can be mapped on MYTABLE. I've a domain object named MYOBJECT whose primary key is X + Y. Unfortunately there is not a table in which X + Y is the primary key. ... |
59. Mapping question.. forum.hibernate.org |
60. Newbie to mappings forum.hibernate.orgI am a newbie to hibernate. I have 2 oracle tables: PRODUCT and TARRIF. I need to join these two tables on the basis of PRODUCT.prodKey = TARRIF.prodKey. Do i need to produce two seperate mapping files? product.hbm.xml and tarrif.hbm.xml? Or does the tarrif mapping need to be embedded in the product.hbm.xml? Do i need to have a property of type ... |
61. Multiple class one-to-many mapping problem. forum.hibernate.orgSo my problem is as follows. I have several classes (ParentOne, ParentTwo, ...) which all have a set of children associated with them. This is a one to many mapping, which would be simple with one class. However, I'd like all parents to map their sets of children to the same table. Each parent has a guid associated with it so ... |
62. any and one-to-many mapping forum.hibernate.orgHibernate version: 2.1.6 Name and version of the database you are using: Oracle 10g Hi, I have the following hierarchy I'm trying to represent in hibernate. TypeA implements IType TypeB implements IType TypeC implements IType IType has a Map of Entities, so the entities table has a getIType method which uses |
63. getting mapping info of Many-To-Many from configuration forum.hibernate.orgHibernate version:3.1.3 Hi all for my project at https://genericrcp.dev.java.net/ I need mapping information from the mapping files. Based on this info a generic gui will be generated. I parse the hbm.xml files manually to get this infos e.g. wich classes, simple attributes or kind of relationsships (otm, mtm ...) Now I rec ognized that I can use the hibernate Configuration object ... |
64. Mapping Question forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 2.1.8 I am having some difficulty figuring out how to map this hierarchy. Here are my objects: Code: public abstract class ResourceMaterialImpl implements ResourceMaterial { protected Calendar creationTimestamp; protected String creationUserId; protected String ... |
65. Problems mapping byte[] to DB2400 forum.hibernate.org |
66. hibernate mapping forum.hibernate.orgOk, so I have two tables that are linked by a foreign key. I'm trying to retrieve a record from one of the tables, based on criteria from both tables. Say I have a Person table and a User table, and the oid in the Person table is tied to the SSN in the user table. If I know first name, ... |
67. mapping on result fonctions forum.hibernate.orgHibernate version:3.1.3 Name and version of the database you are using:Oracle 10g Hi, I would like to know if it is possible and how to map a property to a sql function. I am using Oracle with EST and it provides two functions ST_ASTEXT and ST_POLYFROMTEXT. The first one converts the stored data of a column as a text and the ... |
68. Mapping a char forum.hibernate.orgDear guys, I'm getting mad with this problem. I already have a table on db2 with data in it. Now I made up an hibernate mapping to manage my data on db with Hibernate. The table is: Code: CREATE TABLE MESSAGES ( MESSAGE_ID INTEGER PRIMARY KEY not null, ASK_INFO_MAIL VARCHAR(50), FROM_DATE DATE, ... |
69. mapping java classes on hibernate forum.hibernate.orgI want to map some java classes (like java.awt.Point) on a mapping file. But, also it must be in a list. For example: public class Example { private java.util.List list = new ArrayList(); // ... } where list is a List object where each element is a java.awt.Point object. Thanks, and sorry my english. |
70. Problem: Hibernate mapping one-to-many many-to-one forum.hibernate.org |
71. Map and UserTypes forum.hibernate.org |
72. Newbie mapping question, multiple one-to-many mappings forum.hibernate.orgHi all, I'm currently trying to crack Hibernate. Here's what I conceptually want to achieve: A "Parent" class has a set of "Children". Each "Child" has a Mother (a Parent) and a Father (Parent). My proposed hbm's are: Code: |
73. Setting up mapping with dot-syntax? forum.hibernate.orgHi, I'm setting up Hibernate for the first time and wondering if one of my hbm.xml files can contain a column mapping with a name "object.beanname", for example |
74. mapping problem forum.hibernate.orghi , i am new in Hibernate, getting confused by mapping a many-to-many relationship with a atrribute. if there's somebody can help? have 3 tables: Person: can attend many projects(PK:PersonID) Project: contains many persons(PK:ProjectID) the last table is Person_Project, which has PersonID(PK;FK), ProjectID(PK;FK), and a extra roleName. in both of my person and Project mapping file i have this: Person.hbm.xml |
75. How would you map the following scenario? forum.hibernate.orgHibernate version:3.13 Name and version of the database you are using:MS SQL I've been trying to figure out how to map a particular scenario, and i keep coming up blank. Maybe somebody out there has done this, or has worked with this sort of thing so they have an answer or a hint. Class Client is mapped to a Client table. ... |
76. Convoluted Mapping Scenario forum.hibernate.org |
77. What is wrong with that mapping? forum.hibernate.orgHibernate version: v3.1.2 Mapping documents: |
78. Strnage thing in many to many mapping forum.hibernate.orgHi I'm using Hibernate 3.1. : I have three tables: PO, Delatnost and TipDelatnosti. Relationships are: one-to-many from PO to Delatnost and one-to-many from TipDelatnsti to Delatnost. My mapping files: PO: |
79. Possible to map one-to-(one or none)? forum.hibernate.orgI have a situation where I need to map a one-to-(one or none). Is that possible in Hibernate (other than just using a one-to-many and always grabbing the first element in the Set)? For example, if I have a table of a bunch of Person records and I want to have a foreign key field to say who is directly in ... |
80. hibernate mapping problem. forum.hibernate.orgHai Friends I am using Hibernate 3.2 and database as MS SQL. My POJOs class is Contact and its corresponding tabls is MYCONTACT.When i am retrieving from the database by the following code Query query = session.createQuery( "from MYCONTACT"); Iterator itr = query.iterate(); while(itr...) { ...... ..... } It is displaying the following msg: org.hibernate.hql.ast.QuerySyntaxError: MYCONTACT is not mapped. [from MYCONTACT] ... |
81. Newbie Mapping Question forum.hibernate.orgHi Guys, I am VERY new to Hibernate... I've been doing my research though, and finally have gotten to the point where things are becoming a bit clearer -- but I am very confused on how to do this mapping. I have 3 tables in my database: Site_Ref, Network_Ref, and Site_Network_Ref. Site_Ref's primary key is site_id Network_Ref's primary key is network_id ... |
82. How to map a singleton ? forum.hibernate.org |
83. What is the use of one- one , 1 - N/N - 1, M-N mapping? forum.hibernate.org |
84. Simple question about mapping forum.hibernate.orgHi all, I am new to Hibernate. I have a simple question i hope somebody can help me with. I am using Spring MVC and Hibernate(great combination). I have a mapping with three objects: Code: |
85. mapping to class in external projects forum.hibernate.orgDear all, I have got two projects. My Hibernateconfig.xml is residing in my 1st project. I want to map a class in hibernateconfig.xml that is residing in my 2nd project. I have made the reference in javabuild path from project one to project two,I still get a class not found error when hibernateconfig.xml attempts to map the class. It seems like ... |
86. Probleme with hibernate bi-directional mapping forum.hibernate.orgView unanswered posts | View active topics Board index Hibernate & Java Persistence Hibernate Users All times are UTC - 5 hours [ DST ] Probleme with hibernate bi-directional mapping Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message aldwin Post subject: Probleme with ... |
87. How to map uniqueidentifier to Hibernate? forum.hibernate.orgI facing some problem on mapping the database column to Hibernate. The source is:- |
88. Mapping Question forum.hibernate.org |
89. many-to-one mapping problem forum.hibernate.orgHi, I'm trying to get the value of the description field from a file status lookup table (cc_file_status_type_t.ccfile_stat_dsc) that is a foreign key to a file table via a code field (cc_file_t.ccfile_stat_cd = cc_file_status_type_t.ccfile_stat_cd). I don't think the current code works, in the FileVO I have the following and the fileStatusDescription getter() method isn't being initialised (toString() displays as below) FileVO: ... |
90. Mixed Mapping forum.hibernate.orgHi All, OK, I read the reference and the Hibernate book and probably overloaded myself. Excuse me if those references contain the answers, but I can't seem to find it. My issue is I have a class composed of some value objects. In particular java's URL and InternetAddress classes, and am trying to figure out the best way to persist them. ... |
91. Precision and Scale mapping forum.hibernate.org[b]Hibernate version:[/b] 3.2.1 The Oracle9Dialect always maps the float java type to the FLOAT database type, so any precision or scale information specified in the mapping file is lost. If this is overridden to map to NUMBER($p,$s), then the precision and scale are mapped into the database correctly, but if none are specified then a default scale of 2 is inserted, ... |
92. One to many mapping with the same class at both ends forum.hibernate.orgHello, I'd like to know if it is at all possible to do a collection mapping of a class to the same class. Eg, I have a class named Category, and this class contains a list of other categories (which are in fact subcategories). Would Hibernate manage some how to achieve such a mapping? If not, why? Is it conceptually stupid? ... |
93. maps of maps in Hibernate forum.hibernate.orgHi, I am a newbie in Hiberante and would like to ask about the option to create maps of maps. my data model is create of several layers, each layer may have 0 to N children. i currently imlplement it as maps of maps, and use recursion to go down (never up) to the data i need and retrieve it. i ... |
94. one-to-one mapping question forum.hibernate.orgI am having table CAR having one-to-one relation with 3 other tables HONDA, TOYOTA and MARUTI. The primary key for Honda, Toyota and Maruti is shared with Car. (i.e, When I save Honda, i first save car and then Honda with the same primary key).When i do honda.getCar(), it executes a query joining Honda, car, Toyota and Maruti. I don't want ... |
95. Many to One Mapping forum.hibernate.orgI've got 2 Tables: User & Awards A User can have many awards. I've mapped a Unidirectional Many to one mapping from Awards to user like this: |
96. one-to-one mapping with condition forum.hibernate.orgBeginner Joined: Thu Jan 04, 2007 5:44 am Posts: 26 Location: Innsbruck - Sivas(TR) - Bregenz Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3 Mapping documents: Code: |
97. Multiple applications sharing same hibernate mapping classes forum.hibernate.orgI have a tomcat server running a set of applications. Each application has its own database and the applications are using identical code base. The application is Spring+hibernate+Struts At the moment, when tomcat is started, each context is initialized with its own hibernate mapping classes, datasource, dao, sessionfactory etc. This will take very long time and consum a lof of memory. ... |
98. Hibernate Mapping Q forum.hibernate.orgI am working on a project that takes in a common code base or SQL, HBM, and POJO files. I take the SQL files and build the database. I use the Hibernate mapping files and POJOs and I hit the ground running. I have the requirement and capability to add columns to the common tables in the database. For example I ... |
99. problems with many-to-one one-to-many mapping forum.hibernate.orgNewbie Joined: Fri Jan 05, 2007 9:40 pm Posts: 3 Hi All ! I'm struggling with a persistence problem since 3 days. I can persist normal bean classes to the database, but a (parent-child relation) many-to-one one-to-many mapping doesn't work. I have tried many things, read the documentation and examples, but the problem is still there. I have to classes called ... |