Package com.jenginetest.builder.model.impl

Examples of com.jenginetest.builder.model.impl.SAuthorImpl


   *
   * @param authorId the primary key for the new s author
   * @return the new s author
   */
  public SAuthor create(long authorId) {
    SAuthor sAuthor = new SAuthorImpl();

    sAuthor.setNew(true);
    sAuthor.setPrimaryKey(authorId);

    return sAuthor;
  }
View Full Code Here


  protected SAuthor toUnwrappedModel(SAuthor sAuthor) {
    if (sAuthor instanceof SAuthorImpl) {
      return sAuthor;
    }

    SAuthorImpl sAuthorImpl = new SAuthorImpl();

    sAuthorImpl.setNew(sAuthor.isNew());
    sAuthorImpl.setPrimaryKey(sAuthor.getPrimaryKey());

    sAuthorImpl.setAuthorId(sAuthor.getAuthorId());
    sAuthorImpl.setFirstName(sAuthor.getFirstName());
    sAuthorImpl.setLastName(sAuthor.getLastName());

    return sAuthorImpl;
  }
View Full Code Here

TOP

Related Classes of com.jenginetest.builder.model.impl.SAuthorImpl

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.