Netbeans - generating a class of objects from the database

I am using netbeans IDE 7.1. I am trying to create class entities from a database (sql server). I can configure the connection to this remote data source, but in the New Entity Classes from the database wizard, the tables are not displayed, and at the bottom they indicate that they select at least one table.

I could fulfill queries and browse tables from netbeans database service.

Can someone help me fix this.

thanks

+6
source share
3 answers

perhaps your scheme is not selected correctly, check in the service-> database-> window your connection (the selected bold scheme is the default scheme), if it is incorrect, right-click-> properties and change your scheme to the public one, all of which you created The tables here usually hope useful :)

+5
source

I ran into this problem, and the only way to get it working is to create a new connection every time. Once I created a new join, it will show me the tables and I could use it, otherwise it would just leave an empty list

+1
source

Go to the projects window. Right click on the properties and go to the frameworks tab. check if hibernate Utils is present and is added if not.

click for image showing how to add hibernate utils framework to java ee project

-1
source

Source: https://habr.com/ru/post/906780/


All Articles