java - batchStore does not load generated keys -


i have record below (the first parameter id serial primary key in postgresql db).

symbologyrecord symbology = new symbologyrecord(null, "a", "b"); symbology.changed(symbology.id, false); 

when insert record with:

create.attach(symbology); symbology.store(); assertnotnull(symbology.getid()); //passes 

my test passes (the id gets uploaded db after insertion).

but if use batchstore id remains null:

create.batchstore(symbology); assertnotnull(symbology.getid()); //fails, id null 

is design or missing obvious?

this not design. ideally, behaviour of batchstore() should match of updatablerecord.store() in every aspect, including fetching of ids, doesn't. known issue #3327 per jooq 3.4


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -