java - Hibernate 5 id uniqueness -


in hibernate 5 problem if use same id value in different tables?

i have 2 entities annotation:

@id @column(name = "id") public string getid() {      return id; } 

if call session.get(myclass.class, "theid") can right entity?

yes, can create such mappings because

  • two classes in java may have field same name
  • two tables in database may have column same name

there nothing else it.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -