Map a Map<Long, List<POJO>> through JPA eclipselink -


i have similar requirement of problem statement defined in i want map map<long, list<pojo>> through jpa

i using eclipselink, had create separate class itemattributes , in class atleast have use primarykey table item_attribute. configuration able fetch results in map, while creating new record eclipselink tries consider itemattributes entity & hence ends in inserting value primarykey(which null) in table item_attribute don't want , want list of - list attributes inserted. surprisingly cannot make primary key read declared in itemattributes class.

any idea how avoid this? further cannot make descriptor class itemattributes read skip creation part of entire table item_attribute using eclipselink workbench configuration.

you need create entity class represent relationship in answer other post.

what exact model/data model.

your intermediate class need id, can use @generatedvalue if have no logical one.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -