many-to-one
How to enforce orphan deletion on a ManyToOne relationship
@ManyToOne(fetch = LAZY) @JoinColumn(name = COL_GROUP_ID, nullable = false, insertable = false, updatable = false, referencedColumnName = COL_ID)[详细]
2023-03-14 05:47 分类:问答NHibernate 2.1.2 unsaved transient instance
I have read many questions and answers, but I couldn´t find solution for my problem. The problem occurs when I migrated from NHibernate 1.2.1 to 2.1.2.[详细]
2023-03-12 18:58 分类:问答JPA manytoone relation delete operation
I want to deleteExternalProcessed fileshas same ExternalProcessedFileInfoBut this query fails.It is easy whenRelation revertedto @onetomanyand cascade on delete but i didn\'t find any useful example f[详细]
2023-03-11 04:45 分类:问答Hibernate L2 Caching for many-to-one associations
I am somewhat new to hibernate and am attempting to implement second level caching using ehCache.I am running into a problem when attempting to use the L2 cache to retrieve a many-to-one association.T[详细]
2023-03-09 22:36 分类:问答Mapping bidirectional asymmetric relation in hibernate: OneToOne-ManyToOne
I have an entity that has reference to another entity that represents the current state of certain properties, thus allowing me to keep track of the history of changes made. For this, I have defined a[详细]
2023-03-09 22:05 分类:问答Bidirectional many-to-one generates SELECT N+1
I have two classes mapped with NHibernate: class Application references class Store with a property StoreId. Application user has an identity id while class Store has an assigned id but I don\'t belie[详细]
2023-03-02 21:17 分类:问答Many to one configuration using EF 4.1 code first
I have the following classes: public class CartItem { public long Id { get; set; } public int Quantity { get; set; }[详细]
2023-03-02 14:14 分类:问答Rails: many-to-one display on form via dynamically added input text boxes
I have a form in rails that allows the user to create a new object (call it a search). This object has_many excluded_phrases.[详细]
2023-02-22 02:26 分类:问答In hibernate is there a way to retrieve a list of entities ordered by a property of a many-to-one relationship object
I have a many-to-one relationship as follows <hibernate-mapping default-lazy=\"false\" package=\"com.my.sample.data\">[详细]
2023-02-21 19:47 分类:问答Grails many-to-one expose id without lazy load?
Grails - H开发者_运维百科ow can I expose the id of a many-to-one association property without forcing a load of the entire object?[详细]
2023-02-21 05:46 分类:问答