Extend RdbmsStore

Hi CUBA Team,

Can I extend RdbmsStore ?

Regards,
CK

Hi,
Yes, you can, using the Extending Business Logic - CUBA Platform. Developer’s Manual rules.

Note that com.haulmont.cuba.core.app.RdbmsStore is a prototype bean:

@Component(RdbmsStore.NAME)
@Scope("prototype")
public class RdbmsStore implements DataStore {

    public static final String NAME = "cuba_RdbmsStore";

So the overriding XML definition should have attribute:

<bean id="cuba_RdbmsStore" class="com.sample.MyRdbmsStore" scope="prototype"/>
1 Like