Skip to content

Instantly share code, notes, and snippets.

View armed's full-sized avatar
🏠
Working from home

Artem Medeu armed

🏠
Working from home
View GitHub Profile
<dependency>
<groupId>com.db4o</groupId>
<artifactId>db4o-full-java5</artifactId>
<version>7.13-SNAPSHOT</version>
</dependency>
<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>
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)
package controllers
import play._
import play.mvc._
object Application extends Controller {
def index = "Application/index.html".asTemplate
}
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._
@Entity
public class Post extends Model {
public String title;
public String content;
public Date postDate;
@ManyToOne
public Author author;
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);
<build>
<resources>
<resource>
<directory>src/conf</directory>
<targetPath>${basedir}/target/classes/META-INF</targetPath>
</resource>
</resources>
..
</build>
<build>
<resources>
<resource>
<directory>src/conf</directory>
<targetPath>${basedir}/target/classes/META-INF</targetPath>
</resource>
</resources>
..
</build>
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();