openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radim Kolář <...@sendmail.cz>
Subject @Basic (optional=false) not mapped to NOT NULL
Date Fri, 19 Nov 2010 20:08:13 GMT

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.

Mime
View raw message