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-94f89814c4df
pull/2/head
konermann 2015-09-09 18:07:26 +00:00
parent 0e35c7b723
commit 66fd14a554
5 changed files with 38 additions and 2 deletions

View File

@ -35,7 +35,7 @@ import javax.persistence.Table;
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
@Entity @Entity
@Table(name = "shortcuts") @Table(schema ="ccm_shortcuts", name = "shortcuts")
public class Shortcut implements Serializable { public class Shortcut implements Serializable {
private static final long serialVersionUID = -5674633339633714327L; private static final long serialVersionUID = -5674633339633714327L;

View File

@ -27,7 +27,7 @@ import org.libreccm.web.Application;
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
@Entity @Entity
@Table(name = "shortcuts_app") @Table(schema ="ccm_shortcuts", name = "shortcuts_app")
public class Shortcuts extends Application { public class Shortcuts extends Application {
private static final long serialVersionUID = -6793265996161649637L; private static final long serialVersionUID = -6793265996161649637L;

View File

@ -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)
);

View File

@ -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)
);

View File

@ -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)
);