This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>com.db4o</groupId> | |
<artifactId>db4o-full-java5</artifactId> | |
<version>7.13-SNAPSHOT</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<parent> | |
<artifactId>corporate-pom</artifactId> | |
<groupId>com.agtsoft</groupId> | |
<version>0.1-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.agtsoft.pon</groupId> | |
<artifactId>rm-domain</artifactId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object App | |
{ | |
def main(args : Array[String]) = | |
{ | |
val filesHere = (new java.io.File(".")).listFiles | |
for ( | |
file <- filesHere; | |
file.isFile; | |
file.getName.endsWith(".scala") | |
) System.out.println("Найден " + file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import play._ | |
import play.mvc._ | |
object Application extends Controller { | |
def index = "Application/index.html".asTemplate | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package play.mvc | |
import scala.xml.NodeSeq | |
import scala.io.Source | |
import java.io.InputStream | |
import java.util.concurrent.Future | |
import play.mvc.Http._ | |
import play.mvc.Scope._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class Post extends Model { | |
public String title; | |
public String content; | |
public Date postDate; | |
@ManyToOne | |
public Author author; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers; | |
import models.Client; | |
import play.mvc.Controller; | |
public class Clients extends Controller { | |
public static void show(Long id) { | |
Client client = Client.findById(id); | |
render(client); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<resources> | |
<resource> | |
<directory>src/conf</directory> | |
<targetPath>${basedir}/target/classes/META-INF</targetPath> | |
</resource> | |
</resources> | |
.. | |
</build> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<resources> | |
<resource> | |
<directory>src/conf</directory> | |
<targetPath>${basedir}/target/classes/META-INF</targetPath> | |
</resource> | |
</resources> | |
.. | |
</build> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<AddressInfo> getAddressData() throws IOException, SwException { | |
Object res = callReadOnlyMethod( | |
GET_ADDRESS_DATA, null); | |
Object[] aiArray = RawDataRetriever.getAddressInfoArray(res); | |
Preconditions.checkState(aiArray.length == 3); | |
Preconditions.checkState(aiArray[1] != null); | |
String defaultStreetName = aiArray[1].toString(); |
OlderNewer