1. Avoiding duplicate rows with XML data forum.hibernate.orgNewbie Joined: Fri Jul 27, 2007 3:20 pm Posts: 1 I have a question about how Hibernate 3.1 detects when to use save or update/merge when persisting elements thru associations. To test various options I've created a subset of the classic Supplier/Parts database in MySQL 5.0 with the DDL below CREATE TABLE Supplier ( SupplierId VARCHAR(36) NOT NULL, Name VARCHAR(20) NOT ... |
2. Problem reading xml config files. forum.hibernate.orgI am having trouble getting hibernate to parse my configuration files and mapping files. I've checked them for being well formed, but nothing seems to work. I tried using a programmatic configuration for the session factory, and it only kept telling me that it could not parse my mapping file. I am just doing a test app for Flex remoting on ... |
3. Need help to build a macro solution in build.xml forum.hibernate.orgNewbie Joined: Tue Apr 08, 2008 4:22 am Posts: 2 Hallo all, I am quite new to Hibernate. What I am now having as a problem is that I have to use my Set objects as list. For example I am having a Structure.hbm.xml file which has this many to many relation: Code: |
4. Does hibernate config support import other xmls forum.hibernate.orgLike ant, does hibernate support import of another subset config.. This would ease xml configuration maintance. e.g some thing like this main.cfg.xml: ?xml version="1.0" encoding="UTF-8"?> |
5. xml-apis required for Hibernate 3.2.5? forum.hibernate.org |
6. Import/Export XML using Hibernate forum.hibernate.org |
7. How many reveng.xml to use? forum.hibernate.org |
8. XML-Relational and JPA forum.hibernate.org |
9. HibernateAppender configuration in xml file forum.hibernate.org |
10. hibernate .hbn.xml forum.hibernate.orgHi! is it possible to dont use any id-generating in my hbn.xml file. I have two column that none of them is id, and i don't need to have a colum with auto-increment. How can i write my hbn.xml for example if i have a timestamp and status coulmns on my table. |
11. Unmarshalling from HIbernate Object to XML forum.hibernate.orgHi Can someone advise pls? I am new to Hibernate and am encountering some problems. I have inherited a large database, and I want to build a physical model in XML schema. Since project has been using Hibernate I was hoping to reuse these resources, that is mapping files & java objects. My approach was to output XML from objects & ... |
12. Hibernate & XML encoding forum.hibernate.orgHi there I'm quite new to the Java and the wonderful world of Hibernate. I'm trying to encode my Hibernate Objects to a XML string, send it to a webapplication, manipulate it and save it back to the Database. But I'm not sure which class I should use.. I tried XStream and Dom4J. I searched for examples and resources in the ... |
13. Mixing JPA orm.xml with hibernate's xml forum.hibernate.orgHi, I have following problem. As our application should be as much JPA-compliant as possible, it is necessary to map all entities in a orm.xml with JPA-namespace (xmlns="http://java.sun.com/xml/ns/persistence/orm"). As some very useful hibernate-functions (filters) are not supported by JPA, I have to declare them separately. I know, that I can mix Annotations with XML-mappings to achieve this, but I am wondering ... |
14. ClassCastException import xml forum.hibernate.orgI am having problems importing XML with one-to-many element. Could anyone help me???? Thanks in advance. The code that raises the exception is: ... session.beginTransaction(); Session xmlSession = session.getSession(EntityMode.DOM4J); Object x = xmlSession.merge(mapping_class,doc4j.getRootElement()); xmlSession.saveOrUpdate(mapping_class,x); .... It is raised in merge function call. Here is the exception: Exception in thread "main" java.lang.ClassCastException: org.dom4j.tree.DefaultElement cannot be cast to java.util.Collection at org.hibernate.type.CollectionType.replaceElements(CollectionType.java:500) at org.hibernate.type.CollectionType.replace(CollectionType.java:574) ... |
15. org.xml.sax.SAXParseException: "class" must match forum.hibernate.orgHello, I am new to hibernate and trying to implement inheritance using table per class hierary. here i am providing the code and exception i have encountered. When i try to load the data created in database,getting the following error message. java.lang.ExceptionInInitializerError Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource EmployeeDetails.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:602) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1621) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1589) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1568) ... |
16. Problem in config.xml file forum.hibernate.orghello everyone, I am learning hibernate 3 and I am stuck up with very first "hello world" program. I read many tutorials and I am building one sime application (hello world) but whenever I create hibernate mapping xml file (xxx.hbm.xml) or config file (hibernate.cfg.xml) I get error as "hibernate.sourceforge.net" at |
17. openjpa - orm.xml forums.oracle.comHi I need to map custom objects in orm.xml. i made Account class that contain attribute account number and transaction objects of type Transaction class. public class Account { protected String accountNumber; protected Transactions transactions; i have mapped accountNumber as < id> in orm.xml. now i need to map transactions into it. |
18. Hibernate to XML forums.oracle.comHey! I am kind of new to Hibernate, and I was wondering if I could use an XML file as a data source/database. When I look it up on google I come across XML mapping, but that obviously isn't what i'm looking for. Does anyone know how I should set up my hibernate.cfg.xml file? Thanks in advance |