Top "Composite-key" questions

A composite key is a database key whose value is made up of multiple typed values

How do I map a composite primary key in Entity Framework 4 code first?

I'm getting to grips with EF4 code first, and liking it so far. But I'm having trouble mapping an entity …

entity-framework orm composite-key
How to write JPQL SELECT with embedded id?

I'm using Toplink essentials (JPA) + GlassFish v3 + NetBean 6.9 I have one table with composite primary key: table (machine) ---------------- |PK …

java jpa jpql composite-key
Composite Key with EF 4.1 Code First

I am trying to figure out how to have a composite key using EF code First 4.1 RC. Currently, I am …

ef-code-first composite-key entity-framework-4.1
How to make composite primary key on phpmyadmin

How to make a composite primary key on phpmyadmin. such that student id is combination of year and roll number. …

mysql phpmyadmin composite-key
hibernate composite key

Is it necessary that composite-id should be mapped to class ?? can it be like this ? <composite-id> <key-property=..../&…

java hibernate composite-key
Hibernate Issue : Foreign key must have same number of columns as referenced primary key

Goal : I want to have importJobId in ImportJob as foreign key for id of allocation table, such that when we …

java sql hibernate foreign-keys composite-key
JPA table with 2 primary key fields

I have a table which contains only 2 fields. The table has a composite PK formed by these two fields. When …

java jpa orm jpa-2.0 composite-key
Eclipse error on mapping with @EmbeddedId

I have an entity with composite key so I use the @Embeddable and @EmbeddedId annotations. Embeddable class looks like this : @…

java eclipse hibernate jpa composite-key
MySQL - Make a pair of values unique

I have a table with two int values that are IDs. On their own these IDs can show up any …

mysql composite-key unique-key
No default constructor for entity for inner class in Hibernate

I have two classes. One is the entity class, the other serves as a composite key class. The code is …

java hibernate composite-key