Arquillian嵌入式Derby数据库columnDefinition =“text”

时间:2015-06-09 08:34:45

标签: hibernate junit ejb derby jboss-arquillian

我正在使用Arquillian / Embedded derby数据库测试我的EJB,我正在处理一个问题。

我的班上有一个字段注释为:

CONTENT text

Hibernate尝试使用字段创建表:

2015-06-09 11:25:56 ERROR SchemaExport:425 - HHH000389: Unsuccessful: create table etc...
2015-06-09 11:25:56 ERROR SchemaExport:426 - TYPE 'TEXT' does not exist.

然后它会出现此错误并且未创建表:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace HideWindows
{
    class Program
    {
        private const int SW_HIDE = 0;

        [DllImport("User32")]
        private static extern int ShowWindow(int hwnd, int nCmdShow);

        static void Main(string[] args)
        {
            Process[] processesRunning = Process.GetProcesses();
            string[] allowedProcs = { "cmd" };
            bool found = false;
            int hwnd;

            foreach (Process pr in processesRunning)
            {
                found = false;
                foreach (string s in allowedProcs)
                {
                    if (pr.ProcessName.ToLower() == s.ToLower())
                        found = true;
                }
                if (found)
                {
                    hwnd = pr.MainWindowHandle.ToInt32();
                    ShowWindow(hwnd, SW_HIDE);
                }
            }
        }
    }
}

有什么想法吗?

0 个答案:

没有答案