mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-08 16:40:20 +00:00
#671 - ENH: Add support for @View and extra-ddl.xml to nicely support entity beans based on views
This commit is contained in:
1 parent
69c2810fbe
commit
81531b6cda
48 files changed
+1187
-255
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns="http://ebean-orm.github.io/xml/ns/extraddl"
|
||||
targetNamespace="http://ebean-orm.github.io/xml/ns/extraddl" elementFormDefault="qualified">
|
||||
|
||||
<!-- Root level type : extra-ddl -->
|
||||
|
||||
<xsd:element name="extra-ddl">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="ddl-script" minOccurs="1" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
<xsd:element name="ddl-script">
|
||||
<xsd:complexType>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<xsd:attribute name="name" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="platforms" type="xsd:string"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
</xsd:schema>
|
||||
@@ -1,10 +1,10 @@
|
||||
create table ${table} (
|
||||
id integer not null,
|
||||
status varchar(10) not null,
|
||||
run_version varchar(150) not null,
|
||||
dep_version varchar(150) not null,
|
||||
comment varchar(150),
|
||||
checksum integer not null,
|
||||
mtype varchar(1) not null,
|
||||
mstatus varchar(10) not null,
|
||||
mversion varchar(150) not null,
|
||||
mcomment varchar(150),
|
||||
mchecksum integer not null,
|
||||
run_on timestamp not null,
|
||||
run_by varchar(30) not null,
|
||||
run_ip varchar(30),
|
||||
|
||||
Reference in new issue
Block a user