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

  • SEARCH
  • Home
  • 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 6966339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:10:45+00:00 2026-05-27T16:10:45+00:00

I am using nhibernate and have a table called tiers. A user makes in

  • 0

I am using nhibernate and have a table called tiers. A user makes in a form all the tiers they need.

It could look like this

Use Teir one up to $600 then use --
Use Teir two up to $1000 then use tier1
Use Tier three up to $1500 then use Tier 1
Use Tier four up to $2000 then use Tier 2

In my database I have a field called “useTierAfter”. This stores the PK of the tier it should use after the limit.

If Tier two is setup to have $1000 cap anything over that amount would use the tier one amount.

Now what I am not sure is in my fluent/domain nhibernate mapping should I have just a Guid as a property or should I have a Tier object in it?

   public class Tier
    {
        public virtual Tier UseTierAfter { get; set; }
        // or
        public virtual Guid UseTierAfter { get; set; }
    }

I am not sure what is a better way to do this.

  • 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-27T16:10:45+00:00Added an answer on May 27, 2026 at 4:10 pm

    This can be done, and is perfectly reasonable. But you’re not having an object containing the same object. Just an object containing a reference to another object of the same class.

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

Sidebar

Related Questions

I have a class that is mapped to a table using NHibernate. The problem
I have this table structure and would like to map it using Fluent Hibernate
Using NHibernate.Mapping.Attributes, I have a entity class with something like: [Class] public class EntityA
I am using NHibernate as my ORM solution and have a need for a
I am using Hibernate with spring. I have a model-class like this. @Entity @Table(name
I have a User table defined like this: CREATE TABLE Users( UserId int IDENTITY(1,1)
I have a database table using an enum. This is already working with hibernate
I have the following Hibernate Mapping, which has to be mapped using the Table
I am using NHibernate and have a cache region specified in my NHibernate configuration:
I have a ASP.NET MVC application using NHibernate and the application runs fine when

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.