summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpyknic <emil@speedment.com>2017-01-26 15:09:31 -0800
committerpyknic <emil@speedment.com>2017-01-26 15:09:31 -0800
commit49a3a3e76ec0319055307afe38c27f3842dbb0ac (patch)
tree5f39446b8fc8f399333354f78bc7db98b53dc714
parentdaf08fbd08ec429da6a415824061c244955fa315 (diff)
downloadSocialPhotoNetworkServer-origin/master.zip
SocialPhotoNetworkServer-origin/master.tar.gz
SocialPhotoNetworkServer-origin/master.tar.bz2
Remove legacy .groovy fileHEADorigin/masterorigin/HEADmaster
-rw-r--r--src/main/groovy/speedment.groovy142
1 files changed, 0 insertions, 142 deletions
diff --git a/src/main/groovy/speedment.groovy b/src/main/groovy/speedment.groovy
deleted file mode 100644
index 2abf09a..0000000
--- a/src/main/groovy/speedment.groovy
+++ /dev/null
@@ -1,142 +0,0 @@
-/**
- *
- * Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); You may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-import java.sql.Timestamp;
-
-name = "socialnetwork";
-
-dbms {
- name = 'db0';
- ipAddress = "speedment.com";
- username = "socialnetwork";
- schema {
- name = 'socialnetwork';
- table {
- name = "user";
- column {
- name = "id";
- mapping = Long.class;
- nullable = false;
- autoincrement = true;
- }
- column {
- name = "mail";
- mapping = String.class;
- nullable = false;
- }
- column {
- name = "password";
- mapping = String.class;
- nullable = false;
- }
- column {
- name = "first_name";
- mapping = String.class;
- }
- column {
- name = "last_name";
- mapping = String.class;
- }
- column {
- name = "avatar";
- mapping = String.class;
- }
- primaryKeyColumn {
- name = "id"
- }
- }
- table {
- name = "image";
- column {
- name = "id";
- mapping = Long.class;
- nullable = false;
- autoincrement = true;
- }
- column {
- name = "uploader";
- mapping = Long.class;
- nullable = false;
- }
- column {
- name = "title";
- mapping = String.class;
- nullable = false;
- }
- column {
- name = "description";
- mapping = String.class;
- nullable = false;
- }
- column {
- name = "img_data";
- mapping = String.class;
- nullable = false;
- }
- column {
- name = "uploaded";
- mapping = Timestamp.class;
- nullable = false;
- }
- primaryKeyColumn {
- name = "id";
- }
- foreignKey {
- name = "image_uploader_to_user_id";
- foreignKeyColumn {
- name = "uploader";
- foreignTableName = "user";
- foreignColumnName = "id";
- }
- }
- }
- table {
- name = "link";
- column {
- name = "follower";
- mapping = Long.class;
- nullable = false;
- }
- column {
- name = "follows";
- mapping = Long.class;
- nullable = false;
- }
- primaryKeyColumn {
- name = "follower"
- }
- primaryKeyColumn {
- name = "follows"
- }
- foreignKey {
- name = "follow_follower_to_user_id";
- foreignKeyColumn {
- name = "follower";
- foreignTableName = "user";
- foreignColumnName = "id";
- }
- }
- foreignKey {
- name = "follow_follows_to_user_id";
- foreignKeyColumn {
- name = "follows";
- foreignTableName = "user";
- foreignColumnName = "id";
- }
- }
- }
- }
-} \ No newline at end of file