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 4007772
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:40:20+00:00 2026-05-20T08:40:20+00:00

I have two tables Order , OrderStatus . Order has OrderId (pk), OrderStatusId (fk)

  • 0

I have two tables Order, OrderStatus . Order has OrderId (pk), OrderStatusId (fk) and so on…
OrderStatus has two columns OrderStatusId (pk) and StatuCcode. The tables are normalised so that there is a proper foreign key constraint on OrderStatusId column. However to me OrderStatus is just a value object all I will ever use it for is to read the description only. Can I keep the data model as it is now and map Orderstatus as value object in NHibernate?

  • 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-20T08:40:20+00:00Added an answer on May 20, 2026 at 8:40 am

    If it were a value object, it wouldn’t have an Id.

    It’s an entity, map it as such.

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

Sidebar

Related Questions

I have two Tables. Order - With Columns OrderID, OrderStatusID OrderStatus - With Columns
I have two tables. One has order information with an order id, and the
I have two tables that are grouped by OrderID . Something like: Orders.OrderID OrderDetails.OrderID
I have two tables in my database : Order(OrderID, Date, ClientID) OrderItem(OrderID, ProductID, Quantity)
Given that I have two tables Customer (id int, username varchar) Order (customer_id int,
I have two tables that I'm joining (in order to get the username from,
I have two tables that need to line up side by side. In order
Lets say I have data in two tables. In one I have Order ID
I have two tables: orders and orders_items. Both sharing the field orderID. I want
i have two tables Order(id, date, note) and Delivery(Id, Note, Date) I want to

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.