EclipseLink: Not appending TENANT_ID to WHERE clause of query for entityManager.merge(entity) operation -


i using eclipselink , spring data jpa single table multi-tenancy requirement.

my problem tenant_id not appended update operation.

spring data jpa internally delegate call entitymanager.merge(entity) problem call not appending tenant_id clause.

example:

what want : update user set firstname = ?, lastname = ? username = ? , tenant_id =? 

what : update user set firstname = ?, lastname = ? username = ?.

so, problem there may user same username more 1 tenant in single table.

why tenant_id not being appended fore em.merge(entity) operation? same case em.remove() 

if not , please suggest solution this.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -