PageRenderTime 38ms CodeModel.GetById 30ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/demos/helloorm/src/com/google/appengine/demos/helloorm/EMF.java

http://datanucleus-appengine.googlecode.com/
Java | 19 lines | 10 code | 5 blank | 4 comment | 0 complexity | 38ff56ffe1a7a1f7048d2d5588610111 MD5 | raw file
 1// Copyright 2008 Google Inc. All Rights Reserved.
 2package com.google.appengine.demos.helloorm;
 3
 4import javax.persistence.EntityManagerFactory;
 5import javax.persistence.Persistence;
 6
 7/**
 8 * @author Max Ross <maxr@google.com>
 9 */
10public final class EMF {
11
12  private static final EntityManagerFactory INSTANCE = Persistence.createEntityManagerFactory("helloorm");
13
14  public static EntityManagerFactory get() {
15    return INSTANCE;
16  }
17
18  private EMF() {}
19}