Relamente made ​​a mistake, this implementation was running because there
are not yet implemented test cases that would validate the valid attributes
of an Instance


2014-05-09 21:45 GMT-03:00 rodrigovilar <notifications@github.com>:

> In kernel/src/main/java/com/nanuvem/lom/kernel/InstanceServiceImpl.java:
>
> >  	}
> >
> >  	public void create(Instance instance) {
> > -
> > +		Class clazz = this.classService.readClass(instance.getClazz()
> > +				.getFullName());
> > +		instance.setClazz(clazz);
> > +
> > +		for (AttributeValue attributeValue : instance.getValues()) {
> > +			if (!clazz.getAttributes().contains(attributeValue)) {
>
> Does this code works?
> This IF compares Attributes with AttributeValues? It should ever return
> false!
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rodrigovilar/lom/pull/43/files#r12501298>
> .
>



-- 
*AttFernando Mateus de Oliveira*