Map 5 « Map « JPA Q&A





1. Mapping Interfaces    forum.hibernate.org

Here's my situation. I'd like to have hibernate map an interface class, and configure it as to which subclass to instantiate when it is retrieved from the database. The basic reason is that when one module has an instance of another' module's interface, the relationship between the two should not be specified in terms of interface classes public class Module1Intf { ...

2. Seperating mapping from other hibernate configuration    forum.hibernate.org

Hi.. I have an interesting problem. I have an application that uses hibernate, and also a jar file with services that can also use hibernate. The main application contains the hibernate.cfg.xml file. Ideally, whenever the team that maintains the jar file adds a class that needs a hibernate mapping file, they would not have to update our hibernate.cfg.xml file. Is there ...

3. Mapping the same class twice?    forum.hibernate.org

I am having some difficulty mapping a section of my model but I am not sure if this is a problem with my model, my mapping or just plain unacceptable to Hibernate. Here's a simplified extract of my classes: Code: class Person { private Long ID; // PK private PersonName personName; ...

4. Simple (?) mapping question    forum.hibernate.org

I have 3 tables that represent a many-many relationship. User->Mapping>Item Mapping is a simple table with 2 columns user_id and item_id and the generated class contains two instance variables that reference a User class and an Item class. My confusion is trying to determine how to query against the generated Mapping Class. Given a User, how can I get the current ...

5. Mapping Hibernate to API's    forum.hibernate.org

I've got a application which provides access via java Apis. I wan't to map theses api to sorte of tables so I can use Hibernate. Is that possible ? details : I've got one database i can access whith jdbc, so with hibernate too, and elsewhere another database with a front end which I can access only by java apis ( ...

6. Mapping resource nit found - but I don't understand !!    forum.hibernate.org

Hi !! I have an exception when I want to use Hibernate : Code: 17:22:54,828 INFO [Configuration] Mapping resource: org/jboss/nukes/core/themes/essaiThemeHibernate/Style.hbm.xml 17:22:54,843 INFO [STDOUT] *** Exception : net.sf.hibernate.MappingException: Resource: org/jboss/nukes/core/themes/essaiThemeHibernate/Style.hbm.xml not found*** But I don't understand because there is the code of my Jboss Service XML file : Code: jboss.jca:service=RARDeployer ...

7. How to map true to 'Y' and false to 'N'?    forum.hibernate.org

8. many-to-many mapping    forum.hibernate.org

9. Mapping Cyclical References    forum.hibernate.org

Is it possible to map cyclical references using hibernate? This is currently my main road block for scrapping my home grown O/R mapping in favor of hibernate. In particular my class looks like this.... public class KeyValuePair { private int id; private int parentId; private KeyValuePair[] categories = new KeyValuePair[ 0 ]; ..... } I have a mapping file, but it ...





10. many-to-many mapping question    forum.hibernate.org

Hi I am trying to model an association between two entities which will have a many-to-many mapping. But this association has certain properties of its own. Say I have a Person object and an Organization object - and the association (AffiliationEpisode) is actually a bridge between Person and Organization, with its own properties. I am following the suggestions posted in earlier ...

11. How Can I map these code ?    forum.hibernate.org

public class People implements Serializable { private int id; private String nome; private String telefone; private String endereco; private java.util.List telefones; private Dep departamento; getters and setters for all fiels. // public class Phone implements Serializable { ...

12. Many-to-One mapping problem    forum.hibernate.org

There doesn't appear to be a way to map Many-to-One without using primary keys. I have GUIDs that I need to map in a relationship structure, but they are not my primary keys. The structure is very straight forward. I have an object called Package that contains a collection of PackageFile objects. Both of those objects have an id (Long) and ...

13. Possible to map a one-to-one reference to an interface?    forum.hibernate.org

Say I have an inteface IA. Say I also have two different classes, B and C. The only commonality between B and C is that they inherit from the same base-class, and they both implement interface IA -- also B and C are mapped into different tables. It is the idea of seperate objects that work great on their own, but ...

14. Mapping question    forum.hibernate.org

15. How to map A - B - C    forum.hibernate.org

Hibernate 2.1.4 M$ SQl Server 2000 I have 3 classes (actually 6, but if I solve this issue for the 1st 3 then I will have solved it for the other 3 also. I have 2 databases I need to talk to. The 2nd db will be easy since it's new and WILL use surrogate keys. However the 1st database uses ...





17. once-more:issue with one-to-many mapping    forum.hibernate.org

sorry I want to change my query. Actually I want the reference of child in parent and child does not know about the parent (no parent reference in child) . So I changed the mapping file to Mapping - CHILD CLASS Other things remain the ...

18. mapping class that implement multiple interfaces    forum.hibernate.org

If I have interfaces, I1 and I2 and class A implements both of them. Then, in class B, I have a one-to-many association to I1 and another one to I2. Where do I map class A? I obviously don't want to duplicate the mapping of all its properties and associations in both places.

19. Mapping Question    forum.hibernate.org

how to i map the following object to singe table? Code: public class PackingUnit { private Long id; private Map displayNames = new HashMap(); public PackingUnit() { } public String getDisplayName(String language) { return (String) displayNames.get(language); ...

20. Simple one-to-one mapping    forum.hibernate.org

All the examples on this site, and in the manual just say to add those 2 lines, but to where!?! I have a very simple example, just two classes, BOOK and BARCODE. I want them to have the same primary key. Here's my mappings: Barcode ...

21. Map a class twice?    forum.hibernate.org

Is it possible to map a class twice? I've written a class that basically wraps a HashMap to provide some other functionality. The class has no other values that need to be persisted. I've used this class in a couple of places as a collection to hold different objects. In other words, in one place, I use MyMap class to hold ...

22. many-to-one mapping    forum.hibernate.org

I'm trying to use many-to-one mapping for my Struts webapp on Tomcat. In tomcat log, the error is : "duplicate import SupportClient" Here is my mapping file : Code: ...

23. Mapping my map    forum.hibernate.org

I'm using Hibernate 2.1.3 to persist the project I'm working on to a MySQL db. I have a collection class that I've written that maps a HashMap and adds some methods to it. I've used it in a few places and need to persist the classes that it holds. Can I do this with a UserType or CompositeUserType? I've only seen ...

24. Many-to-one mapping problem    forum.hibernate.org

Hi! I use long-Datatypes for IDs. Inserting Mitspieler doesn't make a problem, but inserting a Tippgemeinschaft does: No persister for: java.lang.Long A Mitspieler(Player) can have several Teams (Tippgemeinschaft) to manage and a Team must have an admin. Is my relation-mapping wrong? Hier is my mapping file: Code: ...

25. Trying to decide which mapping to use    forum.hibernate.org

Hello all, I have the following Table structure: USER{ user_id int PK session_info varchar } PROFILE{ user_id int PK/FK ... } I have been trying to use one-to-one mappings, at first uni-directional from the User object, so that my Profile object didn't have a reference to the User object. But since I wanted Hibernate to handle the keys, I had to ...

26. Best way to map this?    forum.hibernate.org

27. Mapping problem    forum.hibernate.org

public class Payment { private Long paymentId; private ValueDate creditValueDate; private ValueDate debitValueDate; public Payment() { } public Long getPaymentId() { return paymentId; } public ValueDate getCreditValueDate() { ...

28. Interesting Mapping Problem    forum.hibernate.org

class Person { private String uuid; // PK private PersonName personName; Set otherPersonNames otherPersonNames; ... } class PersonName { private String uuid; // PK/FK private ...

29. Involved many-to-many mapping question    forum.hibernate.org

Hi alls, I've got table A and table B. There's many-to-many relation, But also i need position property of class B, which indicates the object B position in object A collection. The concrete object B has different positions in different A objects. So i think the best solution is table A Many-to-many table table B A ---> | a_id | position ...

30. one-to-one mapping Problem    forum.hibernate.org

Hi everybody !!! I'm dealing with a association that it drives me crazy.... I'll be happy if someone could help me !! This is the prblem: I have to table Document (Parent) and DocumentType (Child), both has it fields and the primary key of the table Document is referenced of the Primary key of the table DocumentTypeA CREATE TABLE [DocumentTypeA] ( ...

31. Mapping problem    forum.hibernate.org

Hi guys, I got the floowing database structure" table1 - id - description table2 - id - description - rootid The table2.rootid is reference to table1.id. It is like one-to-many relationship. So how should I construct a hibernate mapping file? I hv trieda few attemp but failed. Pls help, Thanks ! regards, Prettyhandling

32. Mapping to an unmapped class.    forum.hibernate.org

Hibernate version = 2.1 Database - Sybase Anywhere 7.0.4 I have a class called as StoreRemoteSite which extends RemoteSite. There is a one-to-one association between StoreRemoteSite and RemoteSite. The mapping for this works fine. The SchemaExport utility creates the tables correctly. However, StoreRemoteSite needs to have an additional column that is a foreig-key to a Store table. The persistant class for ...

33. how to use the any mapping?    forum.hibernate.org

Hi I'm using Hibernate 2.1.4 and MySql 4.0.20a. I have a legacy DB with a table-per-concrete-class mapping, which I cannot change. So I tryed to get the mapping working by useing the element. Unfortunately without sucess. I get an MappingException while reading the configuration. I already read Chapter 5.2.5 of the reference manual and Chapter 6.4.2 of Hibernate in Action ...

34. got past mapping and connection pooling - whats the problem?    forum.hibernate.org

Could someone look at my debug messages and let me know what is the problem that I am facing? I got past through connection pooling, mapping file recognition, loading cache provider etc. 2004-08-05 11:05:42 DEBUG MemoryStore.(104) - initialized MemoryStore for sampleCache2 2004-08-05 11:05:42 DEBUG MemoryStore.loadMapInstance(124) - sampleCache1 Cache: Using SpoolingLinkedHashMap implementation 2004-08-05 11:05:42 DEBUG MemoryStore.(104) - initialized MemoryStore for sampleCache1 2004-08-05 ...

35. simple one-to-one mapping issue    forum.hibernate.org

...

36. many-to-one mapping troubles    forum.hibernate.org

Hi guys ! I'm trying to make a and when I start Tomcat, It say to me that "The requested resource (/gestionAV) is not available." Is my mapping wrong ? I can't understand why it does that. PS : Before I had a hand made mapping (without many-to-one), and my application worked perfectly. Hibernate version: 2.1 Mapping documents:

37. Exotic mapping    forum.hibernate.org

Hibernate version:2.1.6 Hi, I have an exotic data structure that I would like to map using Hibernate. Here's the the columns of the table : attribute1 attribute2 . . . component1-att1 component1-att2 component2-att1 component2-att2 . . componentn-att1 componentn-att2 As you can notice, this data structure isn't easy to maintanin (if other components are added, I have to change the persistence class). ...

38. Optional mapping?    forum.hibernate.org

Hibernate version: 2.1.2 Oracle 8.1.5 does not provide a means to store and retrieve timestamps that have precision to microseconds. To solve this problem we have added micros columns to store this data. In DB2 and Oracle 9 and 10, the precision is there and the extra columns have been removed. I can not change the tables to add or remove ...

39. mapping 2-d-Arrays    forum.hibernate.org

Hello, I didn't find anything about it in the forum nor in the docs: is it possible to persist a 2d-array like [quote]Cat[][] catArray;[/quote]? I know it works with [quote][/quote] This requires Cat being serializable. Is there any other way? Or is there a way to persist it like an array with [quote] ...

40. Mapping many-to-many    forum.hibernate.org

Beginner Joined: Sun Apr 04, 2004 8:45 am Posts: 20 I want to make a simple example for a many-to-many mapping. Here are the mapping documents. Mapping document: A.hbm.xml Code: ...

41. How to map use-in-tostring to print mult. lines    forum.hibernate.org

Hi all. I am currently using Hibernate2. I am still a newbie but I have everything working great so far. I have a relatively simple question in which I could not find an answer to. In my hibernate mapping files, I specify several properties to be included in the toString method of the generated object. These always print on one line. ...

42. Strange Many-to-Many mapping problem    forum.hibernate.org

Hibernate version:2.1 Mapping documents:

43. mapping question    forum.hibernate.org

Hibernate version: Mapping documents: Code between sessionFactory.openSession() and session.close(): Full stack trace of any exception that occurs: Name and version of the database you are using: Debug level Hibernate log excerpt: How do I map the following? In my current system I have a class called Link which simply has two attributes (id,name). id is the primary key in the respective ...

44. another Mapping question    forum.hibernate.org

I have yet an othe rmapping question. Any help is greatly appreciated. I have a table Student and two java classes(Student & Person) Table-Student (name,age,ssn,FatherID,FatherName,MotherId,MotherName) Public Class Student { Sring name.. Parent father Parent mother ... .. } Public Class Parent{ String id String name } Question- I want to use a composite for mapping Parent . How do I use ...

46. Hibernate 3.0 mapping question    forum.hibernate.org

Hibernate version:3.0 alpha I'm trying to do the following mapping, but I don't ever get a ClientContract. In the database I have tables for Asset, Contract, ClientContract and PhysicalAsset. There are no database tables for Parcel and Package. Both Contract and ClientContract have the same assetType 3. Mapping documents: Mapping containing only relevant info. I've removed id's, properties etc.

47. mapping classes    forum.hibernate.org

Hi, sorry - I am sure this is such a basic question, but I just can't wrap my brain around it at the moment. I have a class "DefaultConstructionNode" which contains another class "DefaultPrice" (actually two of them, and other things as well). I want to map each class to its own table: CONSTRUCTION and PRICE respectively. And I want to ...

48. Mapping confusion    forum.hibernate.org

Im having a bit of problems figuring out how to do the best mapping for my domain. I have a: User object that have a Bookshelf The bookshelf have Booklines that contains a reference to a Book and some other atributes I have the bookshelf because i thought it would be best to have methods there and not on the user ...

49. Howto map this    forum.hibernate.org

50. Problem involving many-to-many mapping    forum.hibernate.org

Hi, I currently have a class Owner, with an id, a name and two sets. The first set contains the owners I can read data from, the second set contains the owners to whom I gave the rights to read my data. Code: Long id; String name; Set delegationOver; ...

51. Mapping a Map    forum.hibernate.org

Hi, I Have a class with one member declared like this: // Map [Question, Answer] private Map questionsAndAnswers; This is a map that sores instance of other two classes i use in my code: Question and Answer. How should i map this using hibernate? I tried many different mappings but got an error while trying to generate a database schema (using ...

52. [Conception/Mapping question]    forum.hibernate.org

53. Associative Mapping Question    forum.hibernate.org

Hibernate version:2.1.6 What is the best way to map the following association: A (1..1) --- B (0..1) The Item/Bid example in HIA shows a similar example but Bid is (0..*). Class A has a property of B, which, if there is an entry in table B, needs to be set, otherwise a set of defaults are used. At the moment, I ...

54. Mapping a filtered one-to-many into a one-to-one    forum.hibernate.org

55. Hibernate mapping    forum.hibernate.org

Hibernate version: 2.1 Name and version of the database you are using: HSQLDB 1.7.2 I need to map the following db model (USING table per class). I've got a table, statistics. Now there is a 1:1 relation between this table and 50 different types of statistics. I need some help generate the hibernate mapping-files for these relations. EX: create table statistic ...

56. which mapping?    forum.hibernate.org

Hi, I have a question on how to map the following situation: I have two tables: INDIVIDUAL_NOTES and INDIVIDUAL. The notes table links to the individual table via I_IID column which is the pk of the notes table but not a pk of the individual table. This is because i am keeping versions of individuals but i want them all linked ...

57. Mapping suggestion    forum.hibernate.org

Hello, I was wondering if I could have a suggestion regarding this issue of mine. I have a "partner"object that has a 1-2-1 association to (several) summary table that track its hits. When I use an hibernate one-to-one association, I get the (obvious) desired behavior. However, more often than not I'm only listing "partner" objects and not acessing their associated objects. ...

58. I have a mapping question (one to one).    forum.hibernate.org

59. Basic Mapping Question    forum.hibernate.org

Hibernate version:2.1.6 I am have a tough time trying to figure out when to use joined-subclass, component, many-to-one, etc. I have a table that is called issues. In a form I have several drop down boxes with choices for things like PC Model (Gateway, Dell, etc) Monitor Model (VX770, EV700, etc), Operating System, etc, etc. All these are retrieved from respective ...

60. Map Interfaces or concrete classes: any advice ?    forum.hibernate.org

I'm implementing Hibernate for the first time, and I have run into a number of problems with the use of interfaces and subclasses which I'm unable to find any particular samples or advice on. I'm using Hibernate 2.1.6 and generating mappings via Hibernatedoclet (xdoclet). Any comments welcome. I have a simple inheritance structure as follows: Interfaces: Company, BuyingCompany extends Company SupplierCompany ...

61. mapping quiz    forum.hibernate.org

62. one-to-many mapping questions    forum.hibernate.org

63. mapping many-to-many to same class    forum.hibernate.org

64. Mapping 1 to many    forum.hibernate.org

I'm working with an existing badly designed database. The problem is that some tables aren't normalised and others are over normalised. I'd rather not continue these errors into my objects (and in any case I wouldn't want to map my objects 1-to-1 my tables even if they were perfectly designed.) I've skimmed the Hibernat In Action and can't find how I ...

65. binary mapping    forum.hibernate.org

hi i just tried to store a byte[] into my database which is longer than 255 bytes. hibernate gives me the ability to define the type binary to map a byte[] but it create a varchar with length 255 wich doesn't fit to my problem. knows anybody if it is possible to change the varchar to a longtext? or is there ...

66. many to many mapping of a Map    forum.hibernate.org

Newbie Joined: Sun Nov 07, 2004 6:58 am Posts: 8 Location: HH Germany Hi, i have a mapping like this: i just will mapping a Map in Hibernate version: 2.1.6 Code:

67. mapping question    forum.hibernate.org

Hi, I'm pretty new at hibernate, so I have been testing it out on a project, everything was going pretty well, till I tried to map the following.. a little model of what I'm trying to map. Activity has a 1 to 1 relation with ImageCollection, in ImageCollection theres a List holding instances of Image. The problem now is I want ...

68. Simple one-to-many mapping = Not so simple    forum.hibernate.org

Author Message justinbeck Post subject: Simple one-to-many mapping = Not so simple Posted: Wed Nov 17, 2004 3:05 pm Newbie Joined: Wed Nov 17, 2004 1:16 pm Posts: 6 Location: Charlottesville, VA Okay, other than everything I added below I'm not sure what else I can say... Basically, I have an object that contains a HashSet() of other objects... ...

69. Mapping with interfaces    forum.hibernate.org

I have a system where a number of different classes (Organisation, Customer, etc), all have multiple Addresses. My original design for this involved having subclasses of Address, such as OrganisationAddress, CustomerAddress, etc., with one-to-many mappings. Each subclass would have the a field consisting of the 'parent' type (Customer, Organisation), with appropriate getter/setters. The subclasses were mapped using the table-per-class-hierarchy strategy. Now, ...

70. many-to-many mapping    forum.hibernate.org

Newbie Joined: Mon Nov 22, 2004 6:38 am Posts: 1 Hi.. I have a problem mapping my many-to-many relations, and cant figure out where the problem is.. Im using XDoclet to generate my mapping files. I have a very simple setup: 3 tables Account -KEY -USERNAME -PASSWORD Group -KEY -NAME Group-Account -GROUP_KEY -ACCOUNT_KEY I now need a meny-to-many relation, sp an ...

71. Interface Mapping    forum.hibernate.org

my classes and interface are, import java.lang.String; public interface INames { public String getName(); public setName(String name); public String getSurname(); public setSurname(String surname); public String getMiddlename(); public setMiddlename(String middlename); } this interface need for multiplying public interface IMaincard { public INames iNames; public INames getBabynames(); public setBabynames(INames babyNames); public void getBabynames(); } this is my persisntece classs interface public class Maincard ...

72. how do i map cyclic class references    forum.hibernate.org

Hibernate version: 2.1.16 Mapping documents: Code: ...

73. Mapping classes & business classes    forum.hibernate.org

Hi; Question : why into all design proposed, there are already : 1- Bussiness class : For example, I have the class "User" with (name, address, ..) plus the services (CRUD + find); 2- mapping class generated from Hibernate : same maapig class DBUser with get and the attributes. This design contains a redundancy and heavy, because the classes DBUser and ...

74. Locale mapping (again) - insights appreciated    forum.hibernate.org

hi everyone, Our development team has been thinking about storing mutlilanguage product data in a database. We are thinking about two ways of mapping Locale data to the database: 1. With an seperate LocaleData object, which maps to its own table. 2. The localized data is stored in one string. This is added in a varchar to the table. The object ...

75. Advice: approach for one to one mapping in a web layer env    forum.hibernate.org

I like the idea of having one-to-one mappings, one-to-many mappings etc for objects when I need to display the information on the web UI. However, when I want to save the object I don't want to have the overhead reassociating the one-to-one objects (I just way to save the oids of the one-to-one or the oids in the linkage table). How ...

76. configuration mapping via api    forum.hibernate.org

hi, quite some time ago I was wondering the above mater and found I think in the jira a note by gavin king about developing the configuration api so that one could map a persistent class using the api, instead of xml or tags, which would be very very nice. actually, this is what hibernate does at its core, but I've ...

77. Mapping for interface fails to init EntityPersister    forum.hibernate.org

Author Message memelet Post subject: Mapping for interface fails to init EntityPersister Posted: Wed Dec 15, 2004 3:45 pm Beginner Joined: Fri Aug 27, 2004 1:59 pm Posts: 33 I'm following section 8.1 of the reference manual. - Account is an interface - AccounImpl implements Account When the mapping file is loaded, AbstractEntityPersister fails in its constructor because it ...

78. newbie needing mapping advice    forum.hibernate.org

Hi, I'm wondering what the best way is to map the common business situtation where a task for example, can have one category from a list menu and one priority from a list menu etc. I see how this would work in the relational database, the task record would have a column that points to a primary key in the category ...

79. Central configuration for mappings?    forum.hibernate.org

I am developing a framework that uses hibernate for persistence. I am trying to figure out a way to have a central config for attributes in the hbm.xml files. For example, I would like to be able to change all the table/column names without having to edit the hbm.xml files in the framework. Any best practices? Thoughts? -Anthony

80. can I use concurrentHashMap for map    forum.hibernate.org

Hi, We encountered some threading issues when a persistent map is used (some how multiple keys are created in the db). What's the best way to synchronize the map in a persistent object? Can I use something like java.util.concurrent.concurrentHashMap? Thanks, --Jiunjiun [b]Hibernate version:[/b] 2.1.7c [b]Mapping documents:[/b] [b]Code between sessionFactory.openSession() and session.close():[/b] [b]Full stack trace of any exception that occurs:[/b] [b]Name and ...

81. one-to-one mapping problem    forum.hibernate.org

Hi there! I have a table called available_products in schema X with only one column : product_id which is a FK to a table called products on schema Y. Since the only column on this table is the PK + FK (Please, I wasn't the DBA for the project). What's the best choice to map this? I found two solutions, none ...

82. many-to-one constant mapping    forum.hibernate.org

83. Class w/ just a map    forum.hibernate.org

Hello all, I have the following class. The table would have just a name and value fields, with name being the pk. How can i map this class? it would seem that i'd need a separate table for the class itself with just a primary key so that the tag can be enclosed in a tag. That would suck. ...

84. Problems with mapping a 1:N associatio....    forum.hibernate.org

Hi, I want to map a One-To-Many Association between the Entity Question and the Entity Options. One question can have many options and one option can only belong to one Question. The primary key of Options consists of the Option_id and the Question_id, where the latter is a foreign key to Question. I wrote the following two mappings for Options and ...

85. Many to many mapping question    forum.hibernate.org

...

86. Many-To-Many Mapping for a Map    forum.hibernate.org

Hibernate version: 2.1.6 Mapping documents: The location side: The Group side: Background Information: Many locations can have many ...

87. Mapping Workbench Available?    forum.hibernate.org

88. noobie mapping question    forum.hibernate.org

Apologies if the simplicity of my question offends, but I'm going round in circles, and I'd like to know if what I'm trying to achieve is actually possible. My domain consists of a "person" object, and a "baggage" object. A person can have zero or more items of baggage, in a set. Baggage can also exist outside of a person. I ...

89. one-to-one mapping question    forum.hibernate.org

User user = new User(); user.setName("Blah"); Address addess = new Address(); address.setStreet("666 Toorak Road"); address.setCity("Toorak"); address.setZipCode("3000"); user.setAddress(address); Transaction tx = session.beginTransaction(); //Does the following line of code takes care of address save? ...

90. BASIC: many to one mapping problem    forum.hibernate.org

Hi! I'm using Hibernate synchronizer plugin on Eclipse IDE plataform. I'm getting a list of Ccliente objects without a problem, but when I add the many-to-one mapping to the Cempleado object I get the following Exception: net.sf.hibernate.MappingException: No persister for: java.lang.Integer. Can any body helpme to find the problem? Thank's in advance! Rodolfo. Hibernate version: version 2.1.6, 9.8.2004 Mapping documents: Code: ...

91. BASIC: many to one mapping problem    forum.hibernate.org

Hi! I'm using Hibernate synchronizer plugin on Eclipse IDE plataform. I'm getting a list of Ccliente objects without a problem, but when I add the many-to-one mapping to the Cempleado object I get the following Exception: net.sf.hibernate.MappingException: No persister for: java.lang.Integer. Can any body helpme to find the problem? Thank's in advance! Rodolfo. Hibernate version: version 2.1.6, 9.8.2004 Mapping documents: Code: ...

92. Newbi mapping question    forum.hibernate.org

93. Class with multiple mapped interfaces    forum.hibernate.org

If I have class 'A' which implements interface 'X', 'Y' and 'Z' and all of the interfaces are mapped in hibernate. What will happen when an instance of 'A' is stored, will all three of the tables mapped to the interfaces be updated? If I query an interface, i.e. "from X", what class will be returned? Also, I'm assuming "from A" ...

94. mapping fails after sdk 1.3 -> 1.4 upgrade    forum.hibernate.org

I am currently persisting an interface, Auditable. This interface is implemented by AbstractAuditEvent and this is in turn subclassed by AuditEvent. The mapping file is Auditable.hbm.xml and I create instances of AuditEvent and persist using this mapping. This worked fine when I was using sdk 1.3/OC4J 9, but now I have moved to sdk 1.4 /OC4J 10g it fails like so: ...

95. One-toone mapping question    forum.hibernate.org

Lilly, Tom is not saying that you have to share the FK as in they both have the same foreign key value. He is saying that they will both have the same primary key. As in, both primary keys will have the same value. Hibernate offers a couple of approaches for one-to-one mapping. The 'reference documentation' is particular effective in explaining ...

96. Recommended mapping for "special" one-to-one ???    forum.hibernate.org

Hibernate version: 2.1.7 Mapping documents: to be written ... ;) Name and version of the database you are using: Oracle 9iR2 Hi all, today I've a question about the recommended mapping for the scenario, described as the following: I have several tables in my database, all of them have a artificial key (Long) which is in fact a kind of OID. ...

97. class2hbm mapping    forum.hibernate.org

Hi, Using Hbn 3 and Hbn 2.1 the extenstion project, I am attempting to use the class2hbm MapGenerator to read my classes, and make the corresponding mapping files. I am following the syntax (I think) in the reference PDF but am continually getting variations of the error: Exception in thread "main" java.lang.NoClassDefFoundError: ... I have installed C:\hibernate-3.0\hibernate-extensions-2.1.3 where the MapGenerator class ...

98. Map a matrix of double's in Hibernate?    forum.hibernate.org

99. Hibernate benefit or hinderance - clean mapping not possible    forum.hibernate.org

This question is based on Hibernate 2 the latest as of this posting. I did a great deal of reading on hibernate before posting this to make sure I couldn't get a clear answer from somewhere else before resorting to "bugging" the forum for a better answer. The Problem: I am developing an applicaiton which has need of getting data in ...

100. Could not compile the mapping document    forum.hibernate.org

Newbie Joined: Wed Feb 09, 2005 10:33 am Posts: 8 Location: Toronto, Canada I am using Hibernate 2.1 with JDK 1.4.1 My Java code that Tries to build SessionFactory and Fails compiling User.hbm.xml file ============================================== public int setUser(User user){ Configuration cfg = new Configuration(); Connection conn = null; conn = dam.getConnection(); int result=0; user.setFname("Mehul"); user.setLname("Modi"); user.setPassword("test"); user.setUsername("mmodi"); try{ //cfg.configure("/hibernate.cfg.xml"); //cfg.addFile("/hibernate.cfg.xml"); //com.touchpoint.catapult.server.security.domain.User.class ...