-
Notifications
You must be signed in to change notification settings - Fork 1
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);
}