Hibernate without Primary Key -


i making sample application hibernate. requirement there no primary key on table. had select query application. know there should primary key, table referring has been made without it.

it has 50k records. so, modifying table add id column not see viable option.

can possible?

  1. hibernate requires entity tables have primary keys. end of story.
  2. 50k records not many when you're talking database.

my advice: add autoincrement integer pk column table. you'll surprised @ how fast is.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -