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

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - Mongodb revoke acccess to connect test database -