hibernate-mapping
How to map a component with the Id in Hibernate?
I am trying to map my company\'s business objects (xml not annotation), which have the following general structure:[详细]
2023-02-10 17:25 分类:问答Hibernate error: Could not determine type for: com.mysql.jdbc.Blob
I\'m working on a project with Hibernate and MySQL. In one of my model objects, I declared a property \"image\" whose type is Blob, and I used com.mysql.jdbc.Blob. But when I ran that program, an erro[详细]
2023-02-10 13:54 分类:问答Hibernate fetch MAP optimization (minimize SELECT statements)
How to fetch a map with no additional select statements. I have a hbm like this: <map name=\"officeSet\" table开发者_如何转开发=\"office_employee\" inverse=\"true\" lazy=\"false\"batch-size=\"1[详细]
2023-02-10 10:20 分类:问答How to add property counted in DB to @Entity class?
I have an Entity. And sometimes I need this object also contains some value, call it \'depth\'. The query may look like \'select b.id, b.name, b..., count(c.id) as depth from Entity b, CEntity c where[详细]
2023-02-09 19:44 分类:问答Seam hibernate delete orphan problem
Im using an entity Employee and inside that a list of UserMaster is defined public class EmployeeMaster{[详细]
2023-02-09 08:33 分类:问答How can I map "insert='false' update='false'" on a composite-id key-property which is also used in a one-to-many FK?
I am working on a legacy code base with an existing DB schema. The existing code uses SQL and PL/SQL to execute queries on the DB. We have been tasked with making a small part of the project database-[详细]
2023-02-09 00:23 分类:问答Create a persistent object using a transient one
I have 2 mappings like this: <hibernate-mapping> <class name=\"A\" table=\"A\"> <id name=\"code\" column=\"aCode\" type=\"integer\">[详细]
2023-02-08 17:57 分类:问答remove collection with delete-orphan not work with null assignment? :(
I am having problems removing another entity through cascade delete-orphan. It works when I clear the associated set collection, but not when I make the set collection null.[详细]
2023-02-06 09:09 分类:问答Mapping a localized string in Hibernate - any best practice?
I\'m writing an application where all String properties must be localized, i.e. they must store a different value for every available Locale.[详细]
2023-02-06 05:27 分类:问答many to one problem
i have this error for some hours now and i don\'t get it anymore. It\'s a project with Spring 2.5 and hibernate3. I have tried with declaring a project object in the client object too.[详细]
2023-02-06 01:11 分类:问答