`
ldsjdy
  • 浏览: 146761 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

neodatis

    博客分类:
  • xml
阅读更多
neodatis 设置编码
OdbConfiguration.setDatabaseCharacterEncoding("UTF-8");
        OdbConfiguration.setAutomaticCloseFileOnExit(true);
        OdbConfiguration.setMultiThreadExclusive(false);
        OdbConfiguration.useMultiThread(true);

        odb = ODBFactory.open(dbURL);

        TriggerHelper helper = TriggerHelper.getInstance();
        helper.initInsertIdentityTriggers(odb);



分享到:
评论
1 楼 wqmain 2013-11-11  
您好,为什么我设置了UTF-8编码,但写入的中文还是乱码呢,如下:
TestEntry entry = new TestEntry("中文ABC123", System.currentTimeMillis());
ODB odb = null;
try {
// Open the database
OdbConfiguration.setDatabaseCharacterEncoding("UTF-8");
odb = ODBFactory.open(ODB_NAME);
// Store the object
odb.store(entry);
} finally {
if (odb != null) {
odb.close();
}
}

输出来的却是:??ABC123

望回复,谢谢!

相关推荐

    NeoDatis ODB-开源

    NeoDatis ODB是新一代的面向对象数据库。 ODB是Java,.Net,Groovy,Scala和Google Android的真正的本机和透明持久层。 ODB非常简单且非常快速,并带有强大的查询语言。

    NeoDatis Knowledger-开源

    NeoDatis Knowledger是一个存储知识的数据库。 它支持人类获取知识的方式,因为它支持动态和增量数据模型修改以及数据获取。

    metrics-core-2.0.3

    DataNucleus provides Java data persistence and management platform allowing federation of ... It supports heterogeneous datastores (RDBMS, db4o, LDAP, Excel, XML, NeoDatis, JSON, ODF, BigTable, HBase)

    Java DataNucleus数据持久化框架4.17 组件包

    DataNucleus Access Platform 是一个兼容各种标准的 Java 数据持久化框架,完全...通过它可以访问所有常见的数据库服务器,还包括 LDAP, NeoDatis, JSON, Excel/ODF spreadsheets, XML, BigTable, 和 HADOOP 数据库等.

    aseguradora-dbs:基于某保险公司简化管理的多系统数据接入工程

    保险公司-dbs 基于保险公司简化管理的不同系统的数据访问项目。... 使用 Neodatis 访问数据。 使用 PLSQL(查询)访问数据。 在CPIFP Los Links ( 2014 年 3 月)的多平台应用程序开发的FPGS数据访问主题中完成。

Global site tag (gtag.js) - Google Analytics