hbm
Generated full constructor contains too many params
I have a DB table with many, many fields that is causing an issue when I generate a POJO for that table using a Hibernate .hbm file.The issue is the full constructor being generated produces too many[详细]
2023-04-04 08:27 分类:问答nhibernate map sql stored procedure to entity
Edited: I found another solution to call stored procedure via NHibernate and map it on my entity: var campaignsItems = nhSession.CreateSQLQuery(\"exec Select_List_Campaigns :currentLatDegrees, :curr[详细]
2023-03-11 16:01 分类:问答Mapping an object in Hibernate that has 2 lists causing problems
I\'m trying to save an object that has 2 similar lists using a hbm.xml file. Below is my model object and HBM:[详细]
2023-03-05 02:16 分类:问答HQL Query on Set Property
Suppose that I have the following HBM mapping: <class name=\"Student\" table=\"student\"> <set name=\"classes\" table=\"student_classes\" cascade=\"none\">[详细]
2023-03-02 03:56 分类:问答Is it possible to define default object inside a SET element in HBM?
lets say I have mapping of a set within Parent hbm file: <set cascade=\"all\" inverse=\"true\" lazy=\"false\" name=\"chil开发者_运维问答dren\">[详细]
2023-02-25 13:15 分类:问答Reference an object from a column in another table
I have the following object model: class ObjectA{ public string Description {get;set;} } class ObjectB{ public string Description {get;set;}[详细]
2023-02-21 20:51 分类:问答NHibernate - illegal access to loading collection
I have two entities, Customer and Account. A Customer has many accounts. My mapping for Customer is :[详细]
2023-02-21 01:58 分类:问答Hibernate HBM Mapping Problem
I have the following three classes: public class Student { private Integer studentId; private StudentSchool studentSchool;[详细]
2023-02-20 09: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 分类:问答How to run Nhibernate ICriteria query with setFetchMode(Lazy) when lazy=false defined in HBM?
I\'d like to run a criteria query with lazy many-to-one associations. Those associations are set as lazy=\"false\" in the HBM. It\'s because we use it eagerly 90% of the project.[详细]
2023-01-18 14:57 分类:问答