Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java OrientDB:utf8类名问题_Java_Utf 8_Orientdb - Fatal编程技术网

Java OrientDB:utf8类名问题

Java OrientDB:utf8类名问题,java,utf-8,orientdb,Java,Utf 8,Orientdb,我正在制作一个OGM用于我们的项目。它工作得很好,但是我对类创建过程和类名中的UTF8字符有问题。 我们讲西班牙语,所以有些类的名称使用重音符号。OGM尝试使用它的类名创建类。 以下是存储方法的一部分: public <T> String store(T o) throws IncorrectRIDField, NoOpenTx { String rid = null; try { // si no hay una tx abierta, dispar

我正在制作一个OGM用于我们的项目。它工作得很好,但是我对类创建过程和类名中的UTF8字符有问题。 我们讲西班牙语,所以有些类的名称使用重音符号。OGM尝试使用它的类名创建类。 以下是存储方法的一部分:

public <T> String store(T o) throws IncorrectRIDField, NoOpenTx {
    String rid = null;
    try {
        // si no hay una tx abierta, disparar una excepción
        if (this.graphdb == null) {
            throw new NoOpenTx();
        }

        String classname = o.getClass().getSimpleName();

        ...
        ...
        ...

        // verificar que la clase existe
        if (this.getDBClass(o.getClass())==null){
            graphdb.createVertexType(classname);
        }


        OrientVertex v = graphdb.addVertex("class:" + classname, omap);
怎么能解决这个问题?默认情况下,使用类名+字段名创建边缘,并且存在相同的问题

有什么想法吗?
谢谢

你能在github上打开一个问题吗?

这不是答案,而是评论。
CLASSES
----------------------------------------------+------------------------------------+------------+----------------+

 NAME                                         | SUPERCLASS                         | CLUSTERS   | RECORDS        |
----------------------------------------------+------------------------------------+------------+----------------+
 _studio                                      |                                    | 11         |             23 |
 E                                            |                                    | 10         |              0 |
 OFunction                                    |                                    | 6          |              0 |
 OIdentity                                    |                                    | -          |              0 |
 ORestricted                                  |                                    | -          |              0 |
 ORIDs                                        |                                    | 8          |              0 |
 ORole                                        | [OIdentity]                        | 4          |              3 |
 OSchedule                                    |                                    | 7          |              0 |
 OTriggered                                   |                                    | -          |              0 |
 OUser                                        | [OIdentity]                        | 5          |              3 |
 Pa%C3%ADs                                    | [V]                                | 13         |              1 |
 Pa%C3%ADs_provincias                         | [E]                                | 16         |              0 |
 País                                         | [V]                                | 12         |              0 |
 Provincia                                    | [V]                                | 14         |              1 |
 Provincia_pa%C3%ADs                          | [E]                                | 15         |              1 |
 V                                            |                                    | 9          |              0 |
----------------------------------------------+------------------------------------+------------+----------------+
 TOTAL = 16                                                                                                   32 |
----------------------------------------------+------------------------------------+------------+----------------+