EMF.java
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:0k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. package com.appspot.cindyblog.common;
  2. // Copyright 2008 Google Inc. All Rights Reserved.
  3. import javax.persistence.EntityManagerFactory;
  4. import javax.persistence.Persistence;
  5. public final class EMF {
  6.   private static final EntityManagerFactory INSTANCE = Persistence.createEntityManagerFactory("myblog");
  7.   public static EntityManagerFactory get() {
  8.     return INSTANCE;
  9.   }
  10.   private EMF() {}
  11. }