EMF.java.svn-base
资源名称:cindyblog.rar [点击查看]
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:0k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.appspot.cindyblog.common;
- // Copyright 2008 Google Inc. All Rights Reserved.
- import javax.persistence.EntityManagerFactory;
- import javax.persistence.Persistence;
- public final class EMF {
- private static final EntityManagerFactory INSTANCE = Persistence.createEntityManagerFactory("myblog");
- public static EntityManagerFactory get() {
- return INSTANCE;
- }
- private EMF() {}
- }