Skip to content

JpoRm Configuration Default

Francesco edited this page Jul 12, 2015 · 1 revision

Straightforward creation of a new instance of JPO:

import javax.sql.DataSource;
import com.jporm.rm.session.datasource.JPODataSourceBuilder;
...

// Use your DataSource as parameter here
public JpoRm newInstance(DataSource datasource) {
	//Use the JPODataSourceBuilder to create a new instance of JPO
	return new JPODataSourceBuilder().build(datasource);
}

JPO basics

JPO-RX

  • Configuration
  • Simple CRUD action
    • Prepare the beans
    • CRUD
  • Complex queries
    • Select
      • Join
    • Update
    • Save
    • Delete

JPO-RM

  • Configuration
  • Simple CRUD action
    • Prepare the beans
    • CRUD
  • Complex queries
    • Select
      • Join
    • Update
    • Save
    • Delete
Clone this wiki locally