Simple04.java :  » Database-ORM » Persist » net » sf » persist » tests » common » Java Open Source

Java Open Source » Database ORM » Persist 
Persist » net » sf » persist » tests » common » Simple04.java

//$Id: Simple04.java 7 2007-08-17 19:32:18Z jcamaia $

package net.sf.persist.tests.common;

import net.sf.persist.annotations.Column;
import net.sf.persist.annotations.Table;

@Table(name="simple")
public class Simple04 {

  private long id;
  private String stringCol;
  private long intCol;

  @Column(autoGenerated=true)
  public long getId() { return id; }
  public void setId(long id) { this.id = id; }

  public String getStringCol() { return stringCol; }
  public void setStringCol(String stringCol) { this.stringCol = stringCol; }

  // getter and setter have incompatible types -- will blow
  public long getIntCol() { return intCol; }
  public void setIntCol(boolean intCol) { this.intCol = 9999; }

}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.