CREATE TABLE acls (
	acl_id int NOT NULL,
	name varchar (64) NOT NULL ,
	CONSTRAINT PK_acls PRIMARY KEY
	(
		acl_id
	),
	CONSTRAINT FK_acls_to_objects FOREIGN KEY
	(
		acl_id
	) REFERENCES objects (
		id
	)
)
GO

INSERT INTO classes (type, db_name, table_name, java_class)
	VALUES(5,	'building2', 'acls', 'org.bodington.server.realm.Acl')
GO

INSERT INTO fields (type, sequence, field, set_method_name, get_method_name, set_java_class, get_java_class, flags, foreign_type, set_method_name_foreign, get_method_name_foreign )
	VALUES(5, 1, 'acl_id', 'setAclId', 'getAclId', 'org.bodington.database.PrimaryKey', 'org.bodington.database.PrimaryKey', 1, null, null, null )
GO

INSERT INTO fields (type, sequence, field, set_method_name, get_method_name, set_java_class, get_java_class, flags, foreign_type, set_method_name_foreign, get_method_name_foreign )
	VALUES(5, 2, 'name', 'setName', 'getName', 'java.lang.String', 'java.lang.String', 0, null, null, null )
GO

