3

I want to create a table automatically in PostgreSQL.it is throwing an error i.e relation "freesell_seq" does not exist

import java.util.Date;

public class FreeSell implements it.aessepi.utils.db.PersistentInstance {

    private Integer id;
    private Boolean isStopSell;
    private Date startDate;
    private Date endDate;
    private Gruppo carClass;
    private Sede location;


    public FreeSell() {
        setIsStopSell(false);
    }

    public FreeSell(Integer id, Boolean isStopSell, Date startDate, Date endDate, Gruppo carClass, Sede location) {
        this.id = id;
        this.isStopSell = isStopSell;
        this.startDate = startDate;
        this.endDate = endDate;
        this.carClass = carClass;
        this.location = location;
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setCarClass(Gruppo carClass) {
        this.carClass = carClass;
    }

    public Gruppo getCarClass() {
        return carClass;
    }

    public void setLocation(Sede location) {
        this.location = location;
    }

    public Sede getLocation() {
        return location;
    }

    public Boolean getIsStopSell() {
        return isStopSell;
    }

    public void setIsStopSell(Boolean isStopSell) {
        this.isStopSell = isStopSell;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

}
2
  • See this may it will help you stackoverflow.com/questions/2732878/… Commented Aug 6, 2015 at 5:50
  • Can you upload hibernate cfg or application context(if spring used) file? Would help.. Commented Aug 6, 2015 at 5:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.