Examples of SampleWithTimestampVersion


Examples of org.springframework.data.jpa.domain.sample.SampleWithTimestampVersion

  @Test
  public void considersEntityWithSetTimestampVersionNotNew() {

    EntityInformation<SampleWithTimestampVersion, Long> information = getEntityInformation(SampleWithTimestampVersion.class);

    SampleWithTimestampVersion entity = new SampleWithTimestampVersion();
    entity.version = new Timestamp(new Date().getTime());

    assertThat(information.isNew(entity), is(false));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.