Return-Path: X-Original-To: apmail-empire-db-commits-archive@www.apache.org Delivered-To: apmail-empire-db-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5256119C6 for ; Tue, 26 Aug 2014 09:53:58 +0000 (UTC) Received: (qmail 97930 invoked by uid 500); 26 Aug 2014 09:53:58 -0000 Delivered-To: apmail-empire-db-commits-archive@empire-db.apache.org Received: (qmail 97903 invoked by uid 500); 26 Aug 2014 09:53:58 -0000 Mailing-List: contact commits-help@empire-db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: empire-db-dev@empire-db.apache.org Delivered-To: mailing list commits@empire-db.apache.org Received: (qmail 96909 invoked by uid 500); 26 Aug 2014 09:53:58 -0000 Delivered-To: apmail-incubator-empire-db-commits@incubator.apache.org Received: (qmail 96904 invoked by uid 99); 26 Aug 2014 09:53:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2014 09:53:58 +0000 Date: Tue, 26 Aug 2014 09:53:58 +0000 (UTC) From: "jan (JIRA)" To: empire-db-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (EMPIREDB-210) Wrong Java Type in Records for BLOB Columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EMPIREDB-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jan updated EMPIREDB-210: ------------------------- Attachment: Record.vm.patch The getJavaType-method in WriterService.java returns "Byte[].class" for BLOB Columns. "getName()" of Byte[].class returns "[Ljava.lang.Byte;", "getCanonicalName()" returns java.lang.Byte[]. I attached a patch for Record.vm to call getCanonicalName instead of getName which fixes the issue for me. > Wrong Java Type in Records for BLOB Columns > ------------------------------------------- > > Key: EMPIREDB-210 > URL: https://issues.apache.org/jira/browse/EMPIREDB-210 > Project: Empire-DB > Issue Type: Bug > Components: CodeGenerator > Affects Versions: empire-db-2.4.3 > Reporter: jan > Priority: Minor > Attachments: Record.vm.patch > > > When using the empire-db-codegen project to reverse engineer an existing database the data type BLOB is broken. For example the getter in the record for column BLOB_VALUE (Data Type BLOB) is generated as: > public [Ljava.lang.Byte; getBlobValue() { > return ([Ljava.lang.Byte;)super.getValue(getTable().BLOB_VALUE); > } > "[Ljava.lang.Byte;" is clearly wrong. -- This message was sent by Atlassian JIRA (v6.2#6252)