blob: 645a65b81dd0a948a9ebffa7132628592fcad0b8 (
plain) (
tree)
|
|
<html>
<head>
<title>Using Slicks default code generator</title>
</head>
<body>
<div>
<h2>Using Slicks default code generator</h2>
<p>
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.
</p>
<p>
Use <code>sbt run</code> to run the demo.
</p>
<p>
More info about Slick on <a href="http://slick.typesafe.com/docs/">http://slick.typesafe.com/docs/</a>
</p>
</div>
</body>
</html>
|