For nettogrof:
I try to passe my date in java.sql.Date and I obtain this message:
@Temporal should only be set on a java.util.Date or java.util.Calendar
For ChssPly76, my classes:
SeoDate
@Id
@Column(name = "date_db", nullable = false)
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer dateDb;
@Column(name = "date_date", nullable = false)
@Temporal(TemporalType.TIMESTAMP)
private Date date;
@Column(name = "date_year", nullable = false)
private Integer year;
@Column(name = "date_quarter", nullable = false)
private Integer quarter;
@Column(name = "date_month", nullable = false)
private Integer month;
@Column(name = "date_week", nullable = false)
private Integer week;
@Column(name = "date_day", nullable = false)
private Integer day;
@Column(name = "date_hour", nullable = false)
private Integer hour;
And PositionHistoric:
@EmbeddedId
private PrimaryPositionHistoric primaryKey;
@Column(name = "position", nullable = false)
private Integer position;
@Column(name = "position_double", nullable = false)
private Boolean positionDouble;
@ManyToOne(fetch=FetchType.LAZY, targetEntity=KeywordSite.class)
@JoinColumns({@JoinColumn(nullable=false, name="keyword_db", insertable=false, updatable=false),
@JoinColumn(name="site_db", nullable=false, insertable=false, updatable=false)})
private KeywordSite keyword;
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="site_db", nullable=false, insertable=false, updatable=false)
private Site site;
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name = "page_db", nullable = true)
private Page page;
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name = "engine_db", nullable = false, insertable=false, updatable=false)
private fr.seostrategies.dao.Engine engine;
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name = "date_db", nullable = false)
private SeoDate date;