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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:35:53+00:00 2026-05-14T21:35:53+00:00

Yo Quick q: are Nhibernate HiLo ids unique accross the DB? The reason I

  • 0

Yo

Quick q: are Nhibernate HiLo ids unique accross the DB?

The reason I ask is that we have multiple entities which have an image associated with them. On the client – I am simply storing these images in a folder using the enity ID as the name – am I going to trip over doing this?

w://

  • 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-14T21:35:53+00:00Added an answer on May 14, 2026 at 9:35 pm

    It sounds a bit risky to count on that the ids are unique across the database.

    If you have a separate next_hi value (separate row or column in the hibernate_unique_key table) for each entity your ids will not be unique. If you all entities share the same next_hi, you will still probably get duplicate ids if you use different max_lo values for different entities.

    I guess that if you use a shared next_hi value for all entities and all entities have the same max_lo, then the ids should be unique, at the cost of greater id fragmentation. But you should probably take a closer look before putting any money on it.

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

Sidebar

Related Questions

I'm using NHibernate 3.1. I have a user type that represents a System.Drawing.Image .
Quick question, I have the following string which is a coma separated list of
Does anyone know of a quick way to have NHibernate insert default values for
Hey all, quick NHibernate question. In my current project, we have a denormalized table
Quick question that requires a long explanation.. Say I have two tables - one
I'm getting the Save unsaved transient entities error in NHibernate. I have an aggregate
Quick embrassing question. I have been looking for a PHP function that would calculate
Quick question just to verify something. If I have an HTML5 mobile advertisement that
Working with MySql replication with spring+hibernate, I have a quick question; The transactions that
I just want to do a quick poll to see if Fluent Nhibernate is

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.