-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update entity with null property @MappedCollection don't remove column in column family #27
Comments
While the reported exception is cryptic and can be improved firebrand maps On Tue, Jul 30, 2013 at 11:48 PM, Raneves notifications@github.com wrote:
Raúl Raja Martínez |
Raul, the updated is execute on firebrand method. //my dao retrieve the entity from DB. on it's case, the column reference of property documentos(List with @MappedCollection) don't is removed on cassandra and the value of the column is empty. so, i have exceptions when try execute the simple method get of my atribute. like this: TermoAberturaProjeto tap = dao.get(TermoAberturaProjeto.class, id); |
I see, it is indeed a bug that an exception is thrown in this case. I will
|
Hello Raul, are you ok? You'll fix this issue? |
? |
@fabiozoroastro @raneves I have been very busy lately and not had much time to dedicate to this issue. If you need an immediate fix I'll be happy to review any PR's. Thx |
Well, if I have been updated an entity with NULL value on @MappedCollection property in cassandra database, these column doesn't are removed.
it causes the follow exception:
Caused by: java.lang.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.firebrandocm.dao.AbstractPersistenceFactory.loadMappedCollection(AbstractPersistenceFactory.java:967)
at org.firebrandocm.dao.AbstractPersistenceFactory.loadProperty(AbstractPersistenceFactory.java:934)
at org.firebrandocm.dao.impl.hector.HectorPersistenceFactory.loadLazyPropertyIfNecessary(HectorPersistenceFactory.java:537)
at org.firebrandocm.dao.ClassMetadata$2.invoke(ClassMetadata.java:532)
at br.com.mca.comissionamento.mcadominio.server.persistence.domain.TermoAberturaProjeto_$$javassist_23.getDocumentos(TermoAberturaProjeto$$_javassist_23.java)
When I try access the list property: tap.getDocumentos()
tap is this entity:
public class TermoAberturaProjeto extends EntityBase
{
private static final long serialVersionUID = -8093038817100592845L;
...
}
The text was updated successfully, but these errors were encountered: