aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Vogt <christopher.vogt@epfl.ch>2014-01-30 16:49:57 +0100
committerChristopher Vogt <christopher.vogt@epfl.ch>2014-01-30 16:49:57 +0100
commit70d165e918037d7d68a90fa1accc63a9ee5bd7e9 (patch)
treee9a4f731e1ed25f65a92996ce74f70d42619cd62
parent6daeac59e8db26c603976be4f2bdae00173baa3a (diff)
downloadslick-codegen-example-70d165e918037d7d68a90fa1accc63a9ee5bd7e9.tar.gz
slick-codegen-example-70d165e918037d7d68a90fa1accc63a9ee5bd7e9.tar.bz2
slick-codegen-example-70d165e918037d7d68a90fa1accc63a9ee5bd7e9.zip
Turn into activator project
-rw-r--r--LICENSE16
-rwxr-xr-xREADME.md4
-rw-r--r--activator.properties4
-rw-r--r--tutorial/index.html19
4 files changed, 41 insertions, 2 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8bdd99f
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,16 @@
+Included SQL code is taken from the Java SE tutorial and licensed under
+http://www.oracle.com/technetwork/licenses/bsd-license-1835287.html .
+
+The rest of the project is
+
+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.
diff --git a/README.md b/README.md
index 1e542c2..cbe7707 100755
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
-This code example shows how to setup sbt to use Slick's preconfigued code-generator for working with an existing database schema. `project/Build.scala` enables automatically as well as manually triggered code-generation. `src/main/scala/Example.scala` uses the generated code. The code is generated into file `target/scala-2.10/src_managed/slick/demo/Tables.scala`. The location can be changed in the sbt script. It is usally wise to keep the generated Slick code under version control.
+This code example shows how to setup sbt to use Slick's preconfigued code-generator for working with an existing database schema. `project/Build.scala` enables automatically as well as manually triggered code-generation. `src/main/scala/Example.scala` uses the generated code. The code is generated into file `target/scala-2.10/src_managed/slick/demo/Tables.scala`, which can be changed in the sbt script. It is usally wise to keep the generated Slick code under version control.
-Use `sbt run` to run the demo. \ No newline at end of file
+Use `sbt run` to run the demo.
diff --git a/activator.properties b/activator.properties
new file mode 100644
index 0000000..9121bd1
--- /dev/null
+++ b/activator.properties
@@ -0,0 +1,4 @@
+name=slick-codegen-example
+title=Using Slicks default code generator
+description=
+tags=scala,slick,database,relational
diff --git a/tutorial/index.html b/tutorial/index.html
new file mode 100644
index 0000000..a77b4dc
--- /dev/null
+++ b/tutorial/index.html
@@ -0,0 +1,19 @@
+<html>
+<head>
+ <title>Using Slicks default code generator</title>
+</head>
+<body>
+
+<div>
+ <h2>Using Slicks default code generator</h2>
+ <pre>
+This code example shows how to setup sbt to use Slick's preconfigued code-generator for working with an existing database schema. <code>project/Build.scala</code> enables automatically as well as manually triggered code-generation. <code>src/main/scala/Example.scala</code> uses the generated code. The code is generated into file <code>target/scala-2.10/src_managed/slick/demo/Tables.scala</code>, which can be changed in the sbt script. It is usally wise to keep the generated Slick code under version control.
+
+Use <code>sbt run</code> to run the demo.
+
+More info about Slick on <a href="http://slick.typesafe.com/docs/">http://slick.typesafe.com/docs/</a>
+ </pre>
+</div>
+
+</body>
+</html>