Automagic table creation. The migration stuff is not yet implemented and
various fancy things like embedded objects and constraints and kitchen sinks are not yet implemented, but the basic bits are functional (including IDENTITY column primary key handling). git-svn-id: https://samskivert.googlecode.com/svn/trunk@1916 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -15,15 +15,21 @@ import com.samskivert.util.StringUtil;
|
||||
*/
|
||||
public class TestRecord
|
||||
{
|
||||
public static final int SCHEMA_VERSION = 1;
|
||||
|
||||
@Id
|
||||
public int recordId;
|
||||
|
||||
@Column(nullable=false)
|
||||
public String name;
|
||||
|
||||
@Column(nullable=false)
|
||||
public int age;
|
||||
|
||||
@Column(nullable=false)
|
||||
public Date created;
|
||||
|
||||
@Column(nullable=false)
|
||||
public Timestamp lastModified;
|
||||
|
||||
public String toString ()
|
||||
|
||||
Reference in New Issue
Block a user