composite-id Questions

3

Solved

I'm trying to map an entity with hibernate, but with SQL Server, I am not able to proceed. Following are the details. SQL Server Entity CREATE TABLE [dbo].[BOOK_EMBEDDED]( [row_id] [bigint] IDENTI...
Rosewater asked 4/9, 2017 at 11:2

3

Solved

I want to use criteria to make the following query. I have an Entity with EmbeddedId defined: @Entity @Table(name="TB_INTERFASES") public class Interfase implements Serializable { @EmbeddedId...
Dangle asked 3/11, 2010 at 5:25

3

Solved

i have a composite id defined on my class structure as below. Unfortunatly i always get a hibernate error that complains on the not found "part2": "Property of @IdClass not found in entity MoreCla...
Enticement asked 18/11, 2010 at 14:58

2

Solved

I have the following tables in my database: Announcements: - AnnouncementID (PK) - Title AnouncementsRead (composite PK on AnnouncementID and UserID): - AnnouncementID (PK) - UserID (PK) - DateRe...

1

We have a legacy database that we cannot change. And we are trying to move to the NHibernate instead of old DataAccess layer which is a garbage and is too slow. it has tables like these: GPI tabl...
Changeover asked 21/8, 2010 at 8:58

1

Solved

I'll try to keep this terse, but hopefully won't miss any important information in my troubles. The code I believe provides all details, but I've left out the noise (it's VB, so there's lots of noi...
Apropos asked 9/10, 2009 at 3:34

2

Solved

I'm using Hibernate's JPA impl to model some tables. I'm having trouble mapping a table that: Has no primary key Has a unique index on 4 columns, 3 of which can be nullable I tried to hack it a...
Bussard asked 23/3, 2009 at 16:29
1

© 2022 - 2024 — McMap. All rights reserved.