1. Hibernate not insert re-attached collection? (bug?) stackoverflow.comversion: 3.6.0.final I have the following situation: An entity with a collection, containing value type objects, with cascading fully enabled. 1) I remove, the collection and store it to the db. Then load it ... |
2. Hibernate: bug when mapping a reference to an alternative/natural key column of a sub table? stackoverflow.comThe original question stems from this question: Why is this JPA 2.0 mapping giving me an error in Eclipse/JBoss Tools? As you can see this constellation also freaks out the Eclipse Dali ... |
3. Mapping bug in Hibernate 3.6? coderanch.comException in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: geoareas] Unable to configure EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:374) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32) at tld.geoareas.Main.main(Main.java:45) Caused by: org.hibernate.MappingException: property [_tld_geoareas_bbstats_model_Zip__identifierMapper.country] not found on entity [tld.geoareas.bbstats.model.Country] at org.hibernate.mapping.PersistentClass.getRecursiveProperty(PersistentClass.java:378) at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:414) at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:115) at org.hibernate.cfg.Configuration.processEndOfQueue(Configuration.java:1550) at org.hibernate.cfg.Configuration.processFkSecondPassInOrder(Configuration.java:1473) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1389) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1345) at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1477) at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:193) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1096) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:278) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:362) ... 4 more Caused by: org.hibernate.MappingException: ... |
4. BUG: Wrong JPA to MySQL mapping. LENGTH function. forum.hibernate.org |
5. Possible bug in mixing inheritance strategies 3.5 forum.hibernate.org@Entity @Table(name = "Animal") @Inheritance(strategy = InheritanceType.SINGLE_TABLE) @DiscriminatorValue(value = "AML") public class Animal{ @Column private int eyes = 2; } @Entity @DiscriminatorValue(value = "CAT") public class Cat extends Animal{ @Column boolean purs = true; } @Entity @DiscriminatorValue("ELF") @SecondaryTable(name="Elefant", pkJoinColumns = { ... |
6. Hibernate 3.2.5 bug with annotation @ManyToMany ??? forum.hibernate.orgHello, i have the problem in mapping tables using annotation @ManyToMany in a specific situation. When you have a many-to-many relationship between entities and you use relation table containing only of foreign keys to avoid many-to-many relationship in your DB. The relation table has only 2 columns which are foreign keys from related tables, and it forms composite primary key. For ... |
7. Problem with OneToOne mapping, possibly a bug forum.hibernate.orgHello, I have a problem with OneToOne mapping and it works correct with EclipseLink 2.0.2 so I suppose it could be a bug. I have following mapping: Code: public class Vehicle implements Serializable { ..... @OneToOne(optional=true, fetch=FetchType.LAZY) @PrimaryKeyJoinColumn private CdsNotIdentified cdsNotIdentified; ==================================================== public class CdsNotIdentified ... |
8. Mapping bug in Hibernate 3.6? forum.hibernate.orgI have formulated my problem (and design) here in-depth: http://stackoverflow.com/questions/5784 ... boss-tools As described there JBoss Tools shows some error. As it turns out Hibernate also has problems when mapping this. I get the following exception when run in an SSCCE (JavaSE test app): Code: Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: geoareas] Unable to configure EntityManagerFactory at ... |
9. @any mapping : update bug with malformed query ? forum.hibernate.orgclass ItemContainer { ... @Any(metaColumn = @Column(name = "TYPE"), fetch = FetchType.LAZY) @AnyMetaDef(idType = "long", metaType = "string", metaValues = { @MetaValue(targetEntity = CClass.class, value = "C"), @MetaValue(targetEntity = TClass.class, value = "T") }) @JoinColumn(name = "TYPE_ID") private IItem item; @Any(metaColumn ... |
10. Problem with mapped class. is this a bug forum.hibernate.orgHi all I'm having a problem with a mapped class The exceptions is this Code: java.lang.NullPointerException at net.sf.jagzilla.hibernate.BugActivityMetaClass15.setPropertyValues( |
11. Duplicate saving a children, when.. (bug?) forum.hibernate.orgBeginner Joined: Thu Nov 20, 2003 12:29 pm Posts: 39 ..updating a previously saved (parent) object in the same session the first time. Hey folks, i observed a strange behaviour and i'm thinking it is a bug, but maybe someone has an explanation. I've a simple one-to-many mapping and following steps i made. -create a parent, add a children -save the ... |
12. Problem update Parent with collection, add a children, bug ? forum.hibernate.orgAuthor Message jeje900ss Post subject: Problem update Parent with collection, add a children, bug ? Posted: Fri Apr 23, 2004 6:22 am Newbie Joined: Thu Oct 09, 2003 6:57 am Posts: 17 Location: France Hi all, Firstly, I use Hibernate 2.1 and Java 1.4.2. I have forum which contains a collection of forumMessages |
13. A bug from mapping.. plz help forum.hibernate.orgi'm using hibernate 2.0 and mySQL 4.01 with Tomcat 1.4, and i caugh a strange bug, my old mapping is like this : |
14. Hibernate bug, or new way to do inheritance? forum.hibernate.orgI'm not a Hibernate expert, but I'm working on a project that uses Hibernate Synchronizer, which sets up a similar class hierarchy to yours (abstract base POJOs and extending 'business' classes). I recently migrated it from H2 to H3, and didn't have your problem. Maybe you have additional problems, and your class hierarchy isn't the cause. I would suggest trying lazy="false" ... |
15. XML Hibernate Mapping Document bug forum.hibernate.orgView unanswered posts | View active topics Board index Hibernate & Java Persistence Hibernate Users All times are UTC - 5 hours [ DST ] XML Hibernate Mapping Document bug Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message aphawkes Post subject: XML Hibernate ... |
16. Bug in org.hibernate.mapping.Collection? forum.hibernate.orgpublic Comparator getComparator() { if(comparator!=null && comparatorClassName!=null) { try { setComparator( (Comparator) ReflectHelper.classForName( comparatorClassName ).newInstance() ); } catch (Exception e) { throw new MappingException( "Could not instantiate ... |
17. Bug: insert="true" should override dynamic-insert forum.hibernate.orgNewbie Joined: Mon Nov 21, 2005 1:48 pm Posts: 17 I have a persistent class with the dynamic-insert set to the true. In some cases, I have columns that may have null values but need to be included in the insert statement (yet there are other columns in the same class that should not be included). You see, I have "default" ... |
18. Problem with inheritance when mapped as collection, a Bug? forum.hibernate.org |
19. Multiple mappings, Two classes with inheritance BUG? forum.hibernate.org |
20. hibernate <=3.1 bug:text type mapping to oracle clob forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp map: |
21. A possible bug of |
22. Bug with inheritance forum.hibernate.org[b]Hibernate version: JBoss EJB-3RC8[/b] I have a simple class hierarchy that uses joined inheritance: [code] @Entity @Inheritance(strategy=InheritanceType.JOINED) public class MaterialMaster { private String externalId; } @Entity @PrimaryKeyJoinColumn(name="ID") public class SparePartMaster extends MaterialMaster { } [/code] This hierarchy is referenced by another class: [code] @Entity public class RecallOrderLine { @ManyToOne(fetch=FetchType.LAZY, optional=false) private RecallOrder recallOrder; @OneToOne(fetch=FetchType.LAZY, optional=false) private MaterialMaster material; } [/code] When ... |
23. Bug? Secondray table doesn't work with Mapped Superclass? forum.hibernate.orgHello, I work with the actual version of hibernate. I try to use the secondary table annotation in my entities and have a problem that in some cases hibernate works and in some cases I get an error. Error: Code: 11:33:10 [DEBUG] l.SessionFactoryImpl# |
24. ONE-TO-ONE mapping BUG? forum.hibernate.orgHello, I just observed that cascade="all" do not delete child object when we set it to null. For example there are two classes: public class User { private int id; private Address address; ... } public class Address { private int id; private String street; } when we insert Address object into address field in User object, and next save it ... |
25. Oracle datetime mapping Hibernate bug? forum.hibernate.orgNewbie Joined: Tue Jan 02, 2007 11:08 am Posts: 7 Hello everybody, I've been working with hibernate for almost two years and I love it, however recently I found this behavior trying to map a java.util.Date field to a DATE oracle field and the database is apparently corrupted after inserting new rows (I'm using hibernate 3.2.1), tried almost every possible combination ... |
26. Possible bug in column mapping forum.hibernate.orgI was looking for the binding between physical and logical column names and I found in class Mappings in method addColumnBinding this code: Code: String oldFinalName = (String) binding.logicalToPhysical.put( logicalName.toLowerCase(), finalColumn.getQuotedName() ... |
27. Bug with hql query on collections of non-mapped classes? forum.hibernate.orgI think this might be a bug. I have mapped a bean with a collection of elements in the following way |
28. unique results on set mapping - hibernate bug ? forum.hibernate.orgGreetings to all, i have come across this issue. I have a class employee and a class department. There is a set mapping on class employee (pointing to many departments through an one to many mapping) and a many to one mapping at the declaration of class department to class employee. The problem is if i query for employees and get ... |
29. Bug with orm.xml, annotations and inheritance ? forum.hibernate.orgFor some reasons I would like to use orm.xml to define entity informations (table name, unique constraints, named queries, ...) and use annotations to define columns. I tried to define entities in orm.xml, for example something like that : Code: |
30. Possible bug: named query not found when mapping package forum.hibernate.org |