1. JDBC Driver
  <dependency>
   <groupId>com.orientechnologies</groupId>
   <artifactId>orientdb-jdbc</artifactId>
   <version>2.2.22</version>/*Version OrientDB*/
  </dependency>

  Properties info = new Properties();
  info.put("user", "root");
  info.put("password", "root");

  Connection conn = (OrientJdbcConnection) DriverManager.getConnection("jdbc:orient:remote:localhost/ERPDB", info);//ERPDB => Database Name
  Statement stmt = conn.createStatement();

  ResultSet rs = stmt.executeQuery("SELECT Name,Address,Gender FROM Student");
  rs.next();

Advertisements