2016-07-19 2 views
1

sybase ASE를 데이터베이스로 사용하고 있습니다. jooq를 사용하여 코드를 생성하려고 할 때 다음 경고가 표시되지만 코드 생성은 수행되지 않습니다. 어떤 도움을 주셔서 감사드립니다!jooq sybase 코드 생성 문제

//--------------------------------warning-----------------------------------// 
Jul 19, 2016 5:49:17 PM org.jooq.tools.JooqLogger warn 
WARNING: No schemata were loaded : Please check your connection settings, and whether your database (and your database version!) is really supported by jOOQ. Also, check the case-sensitivity in your configured <inputSchema/> elements : [xfuse] 
Jul 19, 2016 5:49:17 PM org.jooq.tools.JooqLogger info 
INFO: Generating schemata  : Total: 0 

-> 설정 파일 ------- >>>> 당신의 JDBC의 URL에서 < < < ------- >>>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.8.0.xsd"> 
    <jdbc> 
    <driver>com.sybase.jdbc3.jdbc.SybDriver</driver> 
    <url>jdbc:sybase:Tds:192.168.xx.xx:5000/xfuse</url> 
    <user>xxx</user> 
    <password>xxx</password> 
    </jdbc> 
    <generator> 
    <database> 
     <name>org.jooq.util.ase.ASEDatabase</name> 
     <inputSchema>xfuse</inputSchema> 
     <includes>.*</includes> 
     <excludes></excludes> 
    </database> 
    <target> 
     <packageName>com.gen</packageName> 
     <directory>E:/RD/Test/codegeneration/output</directory> 
    </target> 
    </generator> 
</configuration> 
+0

스키마 이름이 실제로 소문자입니까? 전체 구성 XML을 게시 할 수 있습니까? –

답변

0

, 내가 가지고 데이터베이스 이름을 스키마 이름과 혼동시키는 것일 수도 있습니다.

jdbc:sybase:Tds:192.168.xx.xx:5000/xfuse 
// database name ------------------^^^^^ 

<inputSchema>에 제공해야하는 것이 귀하의 스키마 이름입니다. 스키마 이름이 확실하지 않으면 Sybase에 dbo 일 것입니다.

확실히 <inputSchema/> 요소를 제거하고 코드 생성기를 실행할 수도 있습니다. 그렇게하면 에 대한 코드가 xfuse 데이터베이스에있는 모든 개의 스키마를 생성합니다.

+1

감사합니다 man.It 많은 도움이 –

+0

테이블에 대한 Jooq 코드가 생성되지만 저장 프로 시저 및 함수가 생성되지 않습니다 ...? 어떤 도움이! –

+0

@BarathRamaligam : 저장 프로 시저는 Sybase ASE에서 아직 지원되지 않습니다 (https://github.com/jOOQ/jOOQ/issues/1507). 현재 jOOQ를 평가하고 있습니까, 아니면 이미 생산적인 시스템에서 jOOQ를 사용하고 있습니까? –