1. How to change Collection type for depended tables in Hibernate forums.netbeans.orgHello, I am using netbeans hibernate plugin to generate mapping files and POJOs for the hibernate. By default for relations, Collection type is java.util.Set. But I want to change it to ... |
2. write all table entries/rows in a Collection forum.hibernate.orgHi community, I am a hibernate newbie and a have a (maybe a beginner-) question: I have these tables in my MySQL database: SKILLDATA: ID - Integer - PK LVL - Integer DESC - String ITEM: ID - Integer - PK ... SKILLID - Integer - FOREIGN KEY to SKILLDATA.ID I create a new java class called SkillData.java, add an one-to-many ... |
3. Best way to manage collection / linked table ? forum.hibernate.orgHi, I'm not sure if this has been discussed before, couldn't find anything in the search (well, I could find a lot, but nothing matching exactly...). I'm looking at how I can manage a many-to-many relationship in a less complex way than I'm currently doing. I've got a spring/hibernate small app to manage two simple entities, User and Subscription. The way ... |
4. value collections table forum.hibernate.orgHi guys, Would be really grateful for any advice. In my mappings I have a couple of dozens of constructions like this: |
5. Collections using Multiple Tables forum.hibernate.orgHibernate 2.1.6. This is going to be such a noob question and I apologize. I've been able to create sets/bags/maps in Hibernate with simple one-to-many type relationships. But what about a relationship as follows (I'll include MySQL create table SQL definitions to give you an idea): Code: create table tpp_contracts ( id ... |
6. multiple collections in a single table forum.hibernate.orgHi, I have a class like public class EligibilityRules { long id; Set certifications; // set of name value pairs Set specializations; // set of name value pairs Set authorizations; // set of name value pairs ... ... // 10 more collections like the above } The straight-forward way is to map each collection to a separate physical table. However, there ... |
7. filter collection which is for table per class hierarchy forum.hibernate.orgI have a superclass A that has 2 sub-classes B and C. I want to map them as "table per class hierarchy" structure. I have a parent class P has that collection of class A. My parent class P also has another collection of class X. I want to do a query to get all class P objects that have X.cardtype ... |
8. Collection many-to-many between same table forum.hibernate.orgWant to create a relation object (many-to-many) between records from the same table... Say I have a table called RESOURCE (with ID, type, and name columns) and want to describe relationships between resources in a relational object. For example, RELRESOURCE (table) ------------------------- RESOURCEID1, id: long RESOURCEID2, id: long where RESOURCEID1 and RESOURCEID2 have foreign key constaints to an identity column in ... |