Hello Community,

I need help in creating entities through java events but not using
entitymodel.xml file.
like we do in java for creating entities, example was given below for
reference.
EXAMPLE:
try(Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
) {
String sql = "CREATE TABLE REGISTRATION " +
"(id INTEGER not NULL, " +
" first VARCHAR(255), " +
" last VARCHAR(255), " +
" age INTEGER, " +
" PRIMARY KEY ( id ))";
 stmt.executeUpdate(sql);
}catch(SQLException  e){
e.printStackTrace();
}

how can I achieve this in ofbiz using java events?

Thank you,
maheshwari.

   1.

Reply via email to