
test.googlecode.genericdao.databaseinitializer.TestDataModel Maven / Gradle / Ivy
The newest version!
package test.googlecode.genericdao.databaseinitializer;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import test.googlecode.genericdao.model.Ingredient;
import test.googlecode.genericdao.model.LimbedPet;
import test.googlecode.genericdao.model.Person;
import test.googlecode.genericdao.model.Pet;
import test.googlecode.genericdao.model.Project;
import test.googlecode.genericdao.model.Recipe;
import test.googlecode.genericdao.model.Store;
public class TestDataModel {
protected Person joeA, // 10
sallyA, // 9
papaA, // 39
mamaA, // 40
joeB, // 10
margaretB, // 13
papaB, // 39
mamaB, // 38
grandpaA, // 65
grandmaA; // 65
protected Pet fishWiggles;
protected LimbedPet catPrissy, catNorman, spiderJimmy;
protected List stores;
protected List recipes;
protected List projects;
@Autowired
public void setJoeA(Person joeA) {
this.joeA = joeA;
}
@Autowired
public void setSallyA(Person sallyA) {
this.sallyA = sallyA;
}
@Autowired
public void setPapaA(Person papaA) {
this.papaA = papaA;
}
@Autowired
public void setMamaA(Person mamaA) {
this.mamaA = mamaA;
}
@Autowired
public void setJoeB(Person joeB) {
this.joeB = joeB;
}
@Autowired
public void setMargaretB(Person margaretB) {
this.margaretB = margaretB;
}
@Autowired
public void setPapaB(Person papaB) {
this.papaB = papaB;
}
@Autowired
public void setMamaB(Person mamaB) {
this.mamaB = mamaB;
}
@Autowired
public void setGrandpaA(Person grandpaA) {
this.grandpaA = grandpaA;
}
@Autowired
public void setGrandmaA(Person grandmaA) {
this.grandmaA = grandmaA;
}
@Autowired
public void setFishWiggles(Pet fishWiggles) {
this.fishWiggles = fishWiggles;
}
@Autowired
public void setCatPrissy(LimbedPet catPrissy) {
this.catPrissy = catPrissy;
}
@Autowired
public void setCatNorman(LimbedPet catNorman) {
this.catNorman = catNorman;
}
@Autowired
public void setSpiderJimmy(LimbedPet spiderJimmy) {
this.spiderJimmy = spiderJimmy;
}
@Resource // wire by name -- @Autowired @Qualifier("stores") should work, but there seems to be a bug in Spring for lists
public void setStores(List stores) {
this.stores = stores;
}
@Resource // wire by name -- @Autowired @Qualifier("stores") should work, but there seems to be a bug in Spring for lists
public void setRecipes(List recipes) {
this.recipes = recipes;
}
@Resource // wire by name -- @Autowired @Qualifier("stores") should work, but there seems to be a bug in Spring for lists
public void setProjects(List projects) {
this.projects = projects;
}
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy