CCM NG: Shortcut: changed table-annotations, added create_tables.sql
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@3607 8810af33-2d31-482b-a856-94f89814c4dfpull/2/head
parent
0e35c7b723
commit
66fd14a554
|
|
@ -35,7 +35,7 @@ import javax.persistence.Table;
|
|||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "shortcuts")
|
||||
@Table(schema ="ccm_shortcuts", name = "shortcuts")
|
||||
public class Shortcut implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5674633339633714327L;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import org.libreccm.web.Application;
|
|||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "shortcuts_app")
|
||||
@Table(schema ="ccm_shortcuts", name = "shortcuts_app")
|
||||
public class Shortcuts extends Application {
|
||||
private static final long serialVersionUID = -6793265996161649637L;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
create table shortcuts (
|
||||
shortcut_id bigint generated by default as identity,
|
||||
redirect varchar(1024),
|
||||
url_key varchar(1024),
|
||||
primary key (shortcut_id)
|
||||
);
|
||||
|
||||
create table shortcuts_app (
|
||||
object_id bigint not null,
|
||||
primary key (object_id)
|
||||
);
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
create table shortcuts (
|
||||
shortcut_id number(19,0) not null,
|
||||
redirect varchar2(1024 char),
|
||||
url_key varchar2(1024 char),
|
||||
primary key (shortcut_id)
|
||||
);
|
||||
|
||||
create table shortcuts_app (
|
||||
object_id number(19,0) not null,
|
||||
primary key (object_id)
|
||||
);
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
create table shortcuts (
|
||||
shortcut_id int8 not null,
|
||||
redirect varchar(1024),
|
||||
url_key varchar(1024),
|
||||
primary key (shortcut_id)
|
||||
);
|
||||
|
||||
create table shortcuts_app (
|
||||
object_id int8 not null,
|
||||
primary key (object_id)
|
||||
);
|
||||
Loading…
Reference in New Issue