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
Post a Comment