hibernate-mapping
Upgrade of Hibernate from version 3.0 to 3.6
I\'m working on a project which uses Hibernate 3.0(released in 2005), though the project itself is only 4 months old. The catch is we have already written millions of lines of code. We realized we are[详细]
2023-03-28 09:44 分类:问答Table is not mapped?
Now to my understanding to map a table in db we add: @Entity() @Table(name = \"test\") public class Test implements Serializable {[详细]
2023-03-28 07:05 分类:问答How to implement Oracle hints in hibernate?
I just wanted to know is there any way to implement Oracle hints in hibernate? In the net i found that using native sqlquery we can implement the oracle hints in hibernate.[详细]
2023-03-28 04:27 分类:问答Hibernate subclass to override a column
We have an Entity library untouched by our web stack, but our web stack would like to extend existing columns on existing entities with validation constraints.Here\'s one example of the \"goal\":[详细]
2023-03-27 22:27 分类:问答Hibernate oracle integrity constraint violated
I got a problem mapping oracle by hibernate I got these classes Stock.java package com.mc.stock; import java.util.HashSet;[详细]
2023-03-27 20:23 分类:问答org.hibernate.exception.ConstraintViolationException
i am making a sample program using this link i have following tables in sqlserver: `CREATE TABLE Student2([详细]
2023-03-27 19:57 分类:问答How Do Hibernate Composite Keys Affect Property Access?
This is a high level question that I haven\'t been able to wrap my google abilities around. I\'ve got an Access table that maps rights to pieces of data to users.The table contains an id for the user[详细]
2023-03-27 15:36 分类:问答Is it possible to map a Map<String, Object> with Hibernate?
All is in the qu开发者_如何学编程estion. How to map a Map with Hibernate using annotations ? And what\'s the associated database structure ?You are probably looking for a generic key-value database st[详细]
2023-03-27 03:52 分类:问答org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role (Hibernate + Spring)
I have a SpringMVC+Hibernate web application with the following files: applicationContext.xml <bean id=\"dataSource\" destroy-method=\"close\" class=\"org.apache.commons.dbcp.BasicDataSource\"&[详细]
2023-03-26 20:44 分类:问答many-to-many: 'parent' is deleted when there is still another 'child'
I have a many-to-many relationship where two records on one side have the same parent (the owner of the relationship) on the other side. When I delete one of the two records the parent and jointable r[详细]
2023-03-25 06:06 分类:问答