+1
Regarding ISIS-1283 [1], SAFE_AND_CACHEABLE works ok also for Domain Entity
instances.
The following test passes successfully; in previous Isis versions it fails on
the “then” assertion:
@Test
public void differentDomainEntityInstances() throws Exception {
// given
final DomainEntity domainObject1 =
this.domainObjectContainer.newTransientInstance(DomainEntity.class);
this.wrap(domainObject1).setNumericProperty(1);
Integer cachedValue = this.wrap(domainObject1).cachedResult();
assertThat(cachedValue).isEqualTo(1);
final DomainEntity domainObject2 =
this.domainObjectContainer.newTransientInstance(DomainEntity.class);
this.wrap(domainObject2).setNumericProperty(2);
// when
cachedValue = this.wrap(domainObject2).cachedResult();
// then
assertThat(cachedValue).isEqualTo(2);
}
Thanks,
Oscar
[1] https://issues.apache.org/jira/browse/ISIS-1283
> El 29 dic 2015, a las 15:56, Dan Haywood <[email protected]>
> escribió:
>
> I've cut a release for Apache Isis Core and the simpleapp archetype:
>
> * Core 1.11.0
> * SimpleApp Archetype 1.11.0
>
> The source code artifacts have been uploaded to staging repositories on
> repository.apache.org:
>
> *
> http://repository.apache.org/content/repositories/orgapacheisis-1039/org/apache/isis/core/isis/1.11.0/isis-1.11.0-source-release.zip
> *
> http://repository.apache.org/content/repositories/orgapacheisis-1040/org/apache/isis/archetype/simpleapp-archetype/1.11.0/simpleapp-archetype-1.11.0-source-release.zip
>
> For each zip there is a corresponding signature file (append .asc to the
> zip's url).
>
> In the source code repo the code has been tagged as isis-1.11.0-RC1 and
> simpleapp-archetype-1.11.0-RC1; see
> https://git-wip-us.apache.org/repos/asf?p=isis.git.
>
> For instructions on how to verify the release (build from binaries and/or
> use in Maven directly), see
> http://isis.apache.org/guides/cg.html#_cg_committers_verifying-releases
>
> Please verify the release and cast your vote. The vote will be open for a
> minimum of 72 hours.
>
> [ ] +1
> [ ] 0
> [ ] -1