All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jpattern.orm.test.domain.AutoId Maven / Gradle / Ivy

The newest version!
package com.jpattern.orm.test.domain;

import com.jpattern.orm.annotation.Generator;
import com.jpattern.orm.annotation.Id;
import com.jpattern.orm.annotation.generator.GeneratorType;

/**
 * 
 * @author Francesco Cina'
 *
 * 26/ago/2011
 */
public class AutoId {

	@Id
	@Generator(generatorType = GeneratorType.AUTOGENERATED, name="", ifValueIn= {-1})
	private int id = -1;
	private String value;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy