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.
I noticed the this behavior when creating entities from DB/2 tables. The entities were created without problems but the schema that I selected when I created the datasource within Netbeans wasn't added to the entities annotations. I changed @Table(name = "name") to @Table(name = "name", schema = "schema") and now everything works fine.
Deserves more thinking. It would be nice if the schema was added only when neceesary (that is, when that schema is not the default schema for that database user). Unfortunately there is no way in JDBC to get the default schema. OTOH, if we add the schema, should we also add the catalog? Perhaps we could have an option like "fully qualify table names" which would add both the catalog and schema.
Don't forget to provide the same functionality in EntitiesFromDBGenerator, thanks.
*** Issue 124506 has been marked as a duplicate of this issue. ***
*** Issue 121995 has been marked as a duplicate of this issue. ***
Add schema and catalog attributes for @Table when fullyQualifiedTableNames is set http://hg.netbeans.org/main?cmd=changeset;node=9381d9899ef0
catalog and schema will be generated on @Table if Fully Qualified Table Names is checked in the very last step of the wizard.
Hi Team, We are working on deploying EJB CMP 2.x into GlassFish server, so we are trying to generate dbschema using CaptureSchema utility. We are using DB2 database and we have aliases for every table. When we run CaptureSchema, dbschema is generating meta data for only tables but not considering the table aliases. We tried to change the CaptureSchema.java code to pass Table Type as Alias also, but there was no luck. Can someone please guide us in using CaptureSchema tool with table Aliases. Many Thanks, Ramakrishna.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss