Eclipse Helios Java EE with Postgres 9.0 - eclipse

I am trying to crack out some simple examples with Eclipse Helios Java EE and Postgres 9.0. When I try to configure JPA data source with Postgres 9.0. The data source is created and the test connection works. But in the data source window , the tables under the 'public' schema never gets listed. I updated the datasource to use the latest Postgres 9.0 Jdbc type 4 drivers. Since the tables dont get listed , under JPA tools , the generate entities from tables wont work. What could be the problem ?

In connection properties set URL to one of this formats:
jdbc:postgresql:database
jdbc:postgresql://host/database
jdbc:postgresql://host:port/database

Related

JPA Eclipse link from Open JPA - IBM WAS 8.5.12 server

I would like to migrate to Eclipse link and JPA 2.1 on IBM WAS server and DB2. Could you please advice the sets need to be followed? If anyone used before, please explain to us what are the things to have cared?
I am going through the document - https://developer.ibm.com/wasdev/docs/can-i-use-jpa-2-1-on-websphere-application-server/
If you want JPA 2.1 I'd strongly suggest to migrate to WebSphere Liberty (preferably) , as it fully supports that and you already have license for that if you have WAS 8.5, or migrate to tWAS 9.0. On WAS 8.5.x you will have to disable JPA scanning, use application-managed persistence, create shared liberary.... not really worth.
In addition to server settings changes you will have to migrate your app from OpenJPA to EclipseLink. There is free Eclipse plugin - WebSphere_Application_Server_Migration_Toolkit that you can configure to scan your application sources for OpenJPA -> EclipseLink migration.
But also for WAS 8.5.x -> WebSphere Liberty migration ;-)

Can't add new JDBC driver for Mongodb "Driver Class is missing"

Context:
I'm on Windows 10 using Netbeans IDE 8.1 .
I downloaded Hibernate OGM from sourceforge at this adress:
https://sourceforge.net/projects/hibernate/files/hibernate-ogm/5.3.1.Final/hibernate-ogm-5.3.1.Final-dist.zip/download
I then extracted all its files.
I found under hibernate-ogm-5.3.1.Final\dist\lib\mongodb the following files
I copied these files under my project's folder.
When I try to add a new driver in netbeans:
I get the message/error Driver Class is missing...
What am I doing wrong?
The MongoDB Java driver is not a JDBC driver. That's the reason you cannot add it to Netbeans as such. This plugin should do what you are looking for: http://plugins.netbeans.org/plugin/52638/nbmongo
I've never used it though because I prefer to connect using the MongoDB client.
The JDBC standard is for relational databases and, at the moment, there isn't an equivalent for NoSQL databases. For this reason, Hibernate OGM uses its own dialect to connect to the datastore. The dialect will then use, underneath, the required library for the chosen db.

PostgreSQL configuration issue in sqlDeveloper

I am trying to add postgreSQL in SQL developer 3.2.
Have read the steps from many reference sites and have even added multiple third party jars for other DB in past.
I am downloading jar from https://jdbc.postgresql.org/download.html
my system is working with jdk 1.7
However, after adding the postgresql jar, I am unable to see postgre tab in new connection dialogue box.
I upgraded the sql developer version to 4.0.1 and that resolved the issue.

NetBeans: create Entity from Database

I need to reverse engineer my database tables into Entity to run a Java EE project on JBoss AS 7. So I've added into the Services the JBoss application server and added as well as resources a MySQL datasource.
However, when I try to run the wizard Create Entity from Database I can see as only option the default ExampleDS Database. There is no other option to create a new DataSource or use the MySQL DataSource that I've installed on JBoss.
I wonder if it's a NetBeans bug, or I'm missing something. I'm using NetBeans 8.0.1 version.
I think it's an issue with the plugin that you are using for connecting to the application server. I remember I had this issue when I first tried to generate Entity classes from a Database using a Datasource on WildFly. Are you sure that the target application server is JBoss AS 7 and not WildFly ?
If so, try to connect the application to a JBoss AS 7 /EAP 6 instead and see if it works.
Hope it helps
Edit: I've included a JBoss NetBeans tutorial which shows the steps for reverse engineering database tables into Entity classes (and then JSF pages).

Database for Java Enterprise Edition

I'm starting to use Java EE developing on Eclipse IDE, using GlassFish and the default Java database. What I should do if I want to change the database to Oracle?
The application runs on Glassfish and Google App Engine. But is there a way from Eclipse to deploy it to my own server?
You should be able to deploy locally to Glassfish and Oracle using Eclipse. (It's easy to do with IntelliJ.)
All you have to do to use Oracle is add the JDBC driver JAR to the appropriate spot in your CLASSPATH, use the new driver .class, and change the connection URL.
The driver JAR should match your JDK (e.g., ojdbc6.jar) and database version. It should come with your database or you can download it here.
I don't know if the JAR should go in your WEB-INF/lib or a server /lib; consult your docs to be sure.
One more thing: it goes without saying that you'll have to set up Oracle (e.g., proper credentials), create the new schema, and add the tables and indexes before you run your Java app. I thought I'd spell it out to be safe.