@Test public void testMerge() { MongoDBRepositoryDescriptor desc1 = new MongoDBRepositoryDescriptor(); desc1.label = "1"; desc1.sequenceBlockSize = Integer.valueOf(1); MongoDBRepositoryDescriptor desc2 = new MongoDBRepositoryDescriptor(); desc2.label = "2"; desc2.sequenceBlockSize = Integer.valueOf(2); desc1.merge((DBSRepositoryDescriptor) desc2); assertEquals("2", desc1.label); assertEquals(Integer.valueOf(2), desc1.sequenceBlockSize); }
@Override public void merge(DBSRepositoryDescriptor o) { super.merge(o); if (!(o instanceof MongoDBRepositoryDescriptor)) { return; } MongoDBRepositoryDescriptor other = (MongoDBRepositoryDescriptor) o; if (other.server != null) { server = other.server; } if (other.dbname != null) { dbname = other.dbname; } if (other.nativeId != null) { nativeId = other.nativeId; } if (other.sequenceBlockSize != null) { sequenceBlockSize = other.sequenceBlockSize; } if (other.childNameUniqueConstraintEnabled != null) { childNameUniqueConstraintEnabled = other.childNameUniqueConstraintEnabled; } }
MongoDBRepositoryDescriptor extends DBSRepositoryDescriptor { @Override public void merge(DBSRepositoryDescriptor o) { super.merge(o); if (!(o instanceof MongoDBRepositoryDescriptor)) { return; } MongoDBRepositoryDescriptor other = (MongoDBRepositoryDescriptor) o; if (other.server != null) { server = other.server; } if (other.dbname != null) { dbname = other.dbname; } if (other.nativeId != null) { nativeId = other.nativeId; } if (other.sequenceBlockSize != null) { sequenceBlockSize = other.sequenceBlockSize; } if (other.childNameUniqueConstraintEnabled != null) { childNameUniqueConstraintEnabled = other.childNameUniqueConstraintEnabled; } } }
MongoDBRepositoryDescriptor extends DBSRepositoryDescriptor { @Override public void merge(DBSRepositoryDescriptor o) { super.merge(o); if (!(o instanceof MongoDBRepositoryDescriptor)) { return; } MongoDBRepositoryDescriptor other = (MongoDBRepositoryDescriptor) o; if (other.server != null) { server = other.server; } if (other.dbname != null) { dbname = other.dbname; } if (other.nativeId != null) { nativeId = other.nativeId; } if (other.sequenceBlockSize != null) { sequenceBlockSize = other.sequenceBlockSize; } if (other.childNameUniqueConstraintEnabled != null) { childNameUniqueConstraintEnabled = other.childNameUniqueConstraintEnabled; } } MongoDBRepositoryDescriptor(); }
MongoDBRepositoryDescriptor extends DBSRepositoryDescriptor { @Override public void merge(DBSRepositoryDescriptor o) { super.merge(o); if (!(o instanceof MongoDBRepositoryDescriptor)) { return; } MongoDBRepositoryDescriptor other = (MongoDBRepositoryDescriptor) o; if (other.server != null) { server = other.server; } if (other.dbname != null) { dbname = other.dbname; } if (other.nativeId != null) { nativeId = other.nativeId; } if (other.sequenceBlockSize != null) { sequenceBlockSize = other.sequenceBlockSize; } if (other.childNameUniqueConstraintEnabled != null) { childNameUniqueConstraintEnabled = other.childNameUniqueConstraintEnabled; } } MongoDBRepositoryDescriptor(); Boolean getChildNameUniqueConstraintEnabled(); @Override MongoDBRepositoryDescriptor clone(); @Override void merge(DBSRepositoryDescriptor o); }
MongoDBRepositoryDescriptor extends DBSRepositoryDescriptor { @Override public void merge(DBSRepositoryDescriptor o) { super.merge(o); if (!(o instanceof MongoDBRepositoryDescriptor)) { return; } MongoDBRepositoryDescriptor other = (MongoDBRepositoryDescriptor) o; if (other.server != null) { server = other.server; } if (other.dbname != null) { dbname = other.dbname; } if (other.nativeId != null) { nativeId = other.nativeId; } if (other.sequenceBlockSize != null) { sequenceBlockSize = other.sequenceBlockSize; } if (other.childNameUniqueConstraintEnabled != null) { childNameUniqueConstraintEnabled = other.childNameUniqueConstraintEnabled; } } MongoDBRepositoryDescriptor(); Boolean getChildNameUniqueConstraintEnabled(); @Override MongoDBRepositoryDescriptor clone(); @Override void merge(DBSRepositoryDescriptor o); @Deprecated
    @XNode("server")
    public String server; @Deprecated
    @XNode("dbname")
    public String dbname; @XNode("nativeId")
    public Boolean nativeId; @XNode("sequenceBlockSize")
    public Integer sequenceBlockSize; @XNode("childNameUniqueConstraintEnabled")
    public Boolean childNameUniqueConstraintEnabled; }