jpa - What is if it exist or not in the following syntax "strategy=GenerationType.SEQUENCE" -


from 2 syntax , b. there performance change , if not put strategy attribute statement.

a)

@generatedvalue(generator = "titlelistmapseq" ,strategy=generationtype.sequence) @sequencegenerator(name = "titlelistmapseq", sequencename = "title_list_map_seq") private long id; 

b)

@generatedvalue(generator = "titlelistmapseq") @sequencegenerator(name = "titlelistmapseq", sequencename = "title_list_map_seq") private long id; 

both same , if put @sequencegenerator , default calls "strategy=generationtype.sequence".


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -