Package org.springframework.data.jpa.domain.sample

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


   */
  @Test
  public void saveAndFlushShouldSupportReturningSubTypesOfRepositoryEntity() {

    repository.deleteAll();
    SpecialUser user = new SpecialUser();
    user.setFirstname("Thomas");
    user.setEmailAddress("thomas@example.org");

    SpecialUser savedUser = repository.saveAndFlush(user);

    assertThat(user.getFirstname(), is(savedUser.getFirstname()));
    assertThat(user.getEmailAddress(), is(savedUser.getEmailAddress()));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.jpa.domain.sample.SpecialUser

Copyright © 2018 www.massapicom. 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.