Schema per Tenant issues [message #1062321] |
Fri, 07 June 2013 04:00  |
Eclipse User |
|
|
|
Hi all, I have been playing around with schema per tenant, with little success.
First I couldn't make Inheritance structures with a underlying MappedSuperclass followed by "real" inheritance in the tree. I have seen that ClassDescriptor do not get initialized correctly leading to all over strange errors.
Then for heavens sake, I removed those structures and found that the vm crashes after a while with outofmemory, the heap dump telling me that 100's of Megs of RelationalDescriptors couldn't be collected.
Has anyone seen issues like this?
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Schema per Tenant issues [message #1453935 is a reply to message #1453786] |
Mon, 27 October 2014 14:34  |
Eclipse User |
|
|
|
More information, many objects are cloned including mappings related fields as images attached. In OneToOneMapping the Map insertableField
many objects are added in map mantening one instance per tenant.
But after some time using the system the HashSet insertableField in OneToOneMapping presents its size zero and the internal table
contains a value look image two, and when the system will run insertableFields.contains method the field is not localized and thus is not added
the query causing the following error :
Internal Exception: org.postgresql.util.PSQLException: ERROR: null value
in column "id_usuario" violates not-null constraint
Detalhe: Failing row contains (null, 0, 1).
INSERT INTO "99200056".cfgusuario (st_avisosonorochat,
st_disponibilidadechat) VALUES (?, ?)
bind => [1, 0]
|
|
|
Powered by
FUDForum. Page generated in 0.04606 seconds