Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3954186
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:03:58+00:00 2026-05-20T02:03:58+00:00

I am trying to map my company’s business objects (xml not annotation), which have

  • 0

I am trying to map my company’s business objects (xml not annotation), which have the following general structure:

ObjectDetail        (main table)
    ObjectSummary   (main table)
        objectId
    otherStuffInMainTable
    otherStuffInOtherTables

I know how to map the Summary with a simple Id, and I know how to map the Summary object as a component of the Detail object, but I’m not sure how to tell the Detail object that its Id is in a component. There’s a lot of information in the Hib Docs about embeddable Ids, but it’s all about multi-column keys. I have a simple Id, but I don’t want to use the syntax they suggest because just the Id in Summary is the table key, not the whole Summary object.

Is there any best-practice for this that I’m just missing, or any good ideas out there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:03:59+00:00Added an answer on May 20, 2026 at 2:03 am

    If the ObjectSummary.objectId is also the id for ObjectDetail, they should be mapped to a single table. In this case, ObjectSummary can’t be a an entity, with a “life cycle” that is independent from ObjectDetail.

    You can mark ObjectSummary as an embeddable entity. ObjectDetail will have a property embedding ObjectSummary. Check the documentation for the section about embeddable objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to map the following schema using the Entity Framework. A Customer can have
I have the following entities and I am trying to map them with help
I am trying to compile the following code: private String dataToString(){ Map data =
I'm trying to map two objects to each other using a ManyToMany association, but
I have a view that I have been trying to map in either entity
I'm trying to display an map inside an iframe that has a needle which
I'm trying to map the following routes in MVC2. [absoluteUrl] [absoluteUrl]/[dynamicBlogName] These two routes
I'm trying to map a ManyToMany relationships between 2 tables, both having composite primary
I'm trying to map a struct definition using ctypes: struct attrl { struct attrl
I'm new to MVC (and ASP.Net routing). I'm trying to map *.aspx to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.