I have following entity class:
@Entity
@Table(name="queue")
public class QueueEntry {
@Id
@GeneratedValue
private int id;
@Basic(optional=false)
private String url;
@Version
private long version;
}
SQL statement used for table creation (i use H2 database) is:
CREATE TABLE queue (id INTEGER NOT NULL, URL VARCHAR(255), version INTEGER,
PRIMARY KEY (id));
note NOT NULL on URL column is missing.
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Basic-optional-false-not-mapped-to-NOT-NULL-tp5756491p5756491.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.