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 211660 - grab table structure same as BUG ID 167175
Summary: grab table structure same as BUG ID 167175
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: -S1S-
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-24 18:22 UTC by moeSdits
Modified: 2012-05-25 11:45 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 moeSdits 2012-04-24 18:22:18 UTC
the issue that was addressed in BUG ID 167175 can be recreated in netbeans 7.1.1 :

1. In netbeans 7.1.1 connect to an embedded derby database in services window
2. grab structure of a table. save it.
3. disconncet and reconnect again. you will see the tables and view the data.
4. try to grab the table structure again. Save location window opens. May warn you of existing file. then try to save.
5. you get "Unable to grab table. java.sqlNonTransientConnectionException: No current connection"
6. Restart the IDE. You can grab and save but if you disconnect and reconnect you can see the data and do SQL commands but cannot grab table.

this is the persistence.xml file:
<properties>
      <property name="hibernate.archive.autodetection" value="class"/>
      <property name="hibernate.format_sql" value="false"/>
      <property name="hibernate.show_sql" value="false"/>
      <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>
      <property name="javax.persistence.jdbc.url" value="jdbc:derby:c:/MyDB/MyDB/"/>
      <property name="javax.persistence.jdbc.password" value="******"/>
      <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
      <property name="javax.persistence.jdbc.user" value="nbuser"/>
      <property name="hibernate.hbm2ddl.auto" value="update"/>
    </properties>
Comment 1 Jaroslav Havlin 2012-05-25 11:45:54 UTC
http://hg.netbeans.org/core-main/rev/c1c7dd0c2ae2
Fixed. Thank you very much for reporting.