/** * Create an instance of {@link JaxbJoinTable } * */ public JaxbJoinTable createJaxbJoinTable() { return new JaxbJoinTable(); }
@Override public String getCatalog() { return table.getCatalog(); }
@Override public String getSchema() { return table.getSchema(); }
protected AnnotationInstance parserJoinTable(JaxbJoinTable joinTable, AnnotationTarget target) { if ( joinTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.JoinTableSchemaAware( joinTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", joinTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", joinTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", joinTable.getSchema(), annotationValueList ); nestedJoinColumnList( "joinColumns", joinTable.getJoinColumn(), annotationValueList ); nestedJoinColumnList( "inverseJoinColumns", joinTable.getInverseJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", joinTable.getUniqueConstraint(), annotationValueList ); return create( JOIN_TABLE, target, annotationValueList ); }
@Override public void setCatalog(String catalog) { table.setCatalog( catalog ); } }
@Override public void setSchema(String schema) { table.setSchema( schema ); }
protected AnnotationInstance parserJoinTable(JaxbJoinTable joinTable, AnnotationTarget target) { if ( joinTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.JoinTableSchemaAware( joinTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", joinTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", joinTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", joinTable.getSchema(), annotationValueList ); nestedJoinColumnList( "joinColumns", joinTable.getJoinColumn(), annotationValueList ); nestedJoinColumnList( "inverseJoinColumns", joinTable.getInverseJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", joinTable.getUniqueConstraint(), annotationValueList ); return create( JOIN_TABLE, target, annotationValueList ); }
@Override public void setCatalog(String catalog) { table.setCatalog( catalog ); } }
@Override public void setSchema(String schema) { table.setSchema( schema ); }
/** * Create an instance of {@link JaxbJoinTable } * */ public JaxbJoinTable createJaxbJoinTable() { return new JaxbJoinTable(); }
@Override public String getCatalog() { return table.getCatalog(); }
@Override public String getSchema() { return table.getSchema(); }