one-to-many
What's the lazy strategy and how does it work?
I have a problem. I\'m learning JPA. I\'m using embedded OpenEJB container in unit tests, but only working is @OneToMany(fetch=EAGER). Otherwise is the collection allways null. I haven\'t found, how t[详细]
2023-03-23 13:59 分类:问答Displaying a single value from a one to many relationship in a GridView
I have 3 tables: Order, OrderStates, OrderStateDefinition An Order has many OrderStates which then has one OrderStateDefinition.[详细]
2023-03-23 07:17 分类:问答ASP.NET MVC 3 One-To-Many Form
I have this classes who is mapped using Entity Framework Code First: public class Person { public int PersonId { get; set; }[详细]
2023-03-23 01:21 分类:问答Django, topic model with subtopics
i wanted to create a topic model. this model would have a foreign key, non required, to 开发者_C百科the topic above it[详细]
2023-03-22 15:07 分类:问答How to Nest Models within a Model
Imagine I have two models Film -name -description -duration -year_made -rating -actors Actor -name -d_o_b -biography[详细]
2023-03-21 06:11 分类:问答Fluent NHibernate cascading conventions issue - deleted instance passed to update
I normally have everything set to cascade all by using a convention, like so: public class CascadeAllConvention : IHasOneConvention, IHasManyConvention, IReferenceConvention[详细]
2023-03-20 14:03 分类:问答MySQL One to many, pulling only selected record from many table
I am quite new at SQL statements and I have never been very good at joins etc. I am having a problem working out how to do the following:[详细]
2023-03-20 02:46 分类:问答Annotations Hibernate 3.5
The below annotation works when applying it to the field: @OneToMany(targetEntity=TestMany.class, cascade=CascadeType.ALL, fetch=FetchType.EAGER)[详细]
2023-03-19 15:36 分类:问答avoid relation table in Hibernate's mapping one-to-many(or one-to-many) association into db tables
I am new to Hibernate. I notice that in Hibernate, mapping the java classes into database tables often involve relation tables, even sometimes relation tables are not necessary(Like in a one-to-many r[详细]
2023-03-19 13:49 分类:问答Doctrine ORM Conditional Association
i\'m building a Q&A site and my questions, answers and comments are on the same posts table. But their postType is different. I can get answers for a question and comments for an answer with this[详细]
2023-03-19 13:31 分类:问答