This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269571 - Netbeans 8.1 generated hibernate from Oracle db is INCORRECT
Summary: Netbeans 8.1 generated hibernate from Oracle db is INCORRECT
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-16 10:06 UTC by phamtienphuc89
Modified: 2017-01-16 10:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description phamtienphuc89 2017-01-16 10:06:28 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_91
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.91-b03

Reproducibility: null

STEPS:
  * Focus mouse to Project. Right click -- > New --> Hibernate Mapping Files and POJOs from database.

ACTUAL:
Generate file *.hbm.xml, *.JAVA mapping.
Most of all is OK.
But it's wrong in case. 
TABLE tblCustomer:      isConnected | NUMBER (1,0)

Netbeans 8.1 genreated  file TblCustomer.hbm.xml:
...
<property name="isConnected" type="java.lang.Boolean">
            <column name="IS_CONNECTED" precision="1" scale="0">
            </column>
</property>
...
Type in config is INCORRECT.


EXPECTED:
<property name="isConnected" type="java.lang.Byte">
            <column name="IS_CONNECTED" precision="1" scale="0">
            </column>
</property