Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.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 在hibernate中使用postgres序列增加非id的列值_Java_Postgresql_Hibernate_Sequence - Fatal编程技术网

Java 在hibernate中使用postgres序列增加非id的列值

Java 在hibernate中使用postgres序列增加非id的列值,java,postgresql,hibernate,sequence,Java,Postgresql,Hibernate,Sequence,我有一个到表XTable中x列的增量序列,我想告诉hibernate使用这个序列来增加列的值。我怎样才能做到。附加列x不是id,也不能是id。有人知道解决方法吗 液化表配置 <changeSet author="xauthor" id="addXTable"> <createTable tableName="Xtable"> <column autoIncrement="true" name="x" type="BIGINT"

我有一个到表XTable中x列的增量序列,我想告诉hibernate使用这个序列来增加列的值。我怎样才能做到。附加列x不是id,也不能是id。有人知道解决方法吗

液化表配置

<changeSet author="xauthor" id="addXTable">
        <createTable tableName="Xtable">
            <column autoIncrement="true" name="x" type="BIGINT">
                <constraints nullable="false"/>
            </column>
            <column name="id" type="VARCHAR(255)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="id_pkey"/>
            </column>
        </createTable>
    </changeSet>


有人能帮我解决这个问题吗?有人能帮我解决这个问题吗?