Hi,

IMO, discriminator should only be used only if you really can do otherwise.

It sure is a fast way to have something running.
However, as it stores the java class name into the repository, it's a real
pain when you try to refactor your java model and change the class name.

I prefer explicitally declare the jcrType and the elementClassName.

There's still some issues with the trunk, but you can find how to patch it
here:
https://issues.apache.org/jira/browse/JCR-1893
https://issues.apache.org/jira/browse/JCR-1895
https://issues.apache.org/jira/browse/JCR-1909

Sincerely,

Stéphane Landelle

Reply via email to