java - Hibernate - same class with different tables -


i'm trying build app uses table each user. each user's table should contain 10k lines, don't want 1 big table information' prefer divide small tables.

here example:

@entity @table(name = "items") public class item{    @id @generatedvalue    @column(name = "id")    private int id;     @column(name = "description")    private string description; ... 

can somehow make multiple tables use same class , this? :

items_user1

items_user2

...


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -