本文整理了Java中javax.persistence.JoinTable.catalog()
方法的一些代码示例,展示了JoinTable.catalog()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JoinTable.catalog()
方法的具体详情如下:
包路径:javax.persistence.JoinTable
类名称:JoinTable
方法名:catalog
暂无
代码示例来源:origin: ebean-orm/ebean
/**
* Return the full table name
*/
private String getFullTableName(JoinTable joinTable) {
StringBuilder sb = new StringBuilder();
if (!StringHelper.isNull(joinTable.catalog())) {
sb.append(joinTable.catalog()).append(".");
}
if (!StringHelper.isNull(joinTable.schema())) {
sb.append(joinTable.schema()).append(".");
}
sb.append(joinTable.name());
return sb.toString();
}
代码示例来源:origin: hibernate/hibernate-orm
@Test
public void testJoinTableNoChildren() throws Exception {
reader = getReader( Entity2.class, "field1", "many-to-many.orm16.xml" );
assertAnnotationPresent( ManyToMany.class );
assertAnnotationPresent( JoinTable.class );
assertAnnotationNotPresent( JoinColumns.class );
assertAnnotationNotPresent( JoinColumn.class );
JoinTable joinTableAnno = reader.getAnnotation( JoinTable.class );
assertEquals( "", joinTableAnno.catalog() );
assertEquals( "", joinTableAnno.name() );
assertEquals( "", joinTableAnno.schema() );
assertEquals( 0, joinTableAnno.joinColumns().length );
assertEquals( 0, joinTableAnno.inverseJoinColumns().length );
assertEquals( 0, joinTableAnno.uniqueConstraints().length );
}
代码示例来源:origin: hibernate/hibernate-orm
catalog = joinTable.catalog();
logicalName = new QualifiedTableName(
Identifier.toIdentifier( catalog ),
代码示例来源:origin: hibernate/hibernate-orm
@Test
public void testJoinTableNoChildren() throws Exception {
reader = getReader( Entity1.class, "field1", "many-to-one.orm4.xml" );
assertAnnotationPresent( ManyToOne.class );
assertAnnotationNotPresent( JoinColumn.class );
assertAnnotationNotPresent( JoinColumns.class );
assertAnnotationPresent( JoinTable.class );
JoinTable joinTableAnno = reader.getAnnotation( JoinTable.class );
assertEquals( "", joinTableAnno.catalog() );
assertEquals( "", joinTableAnno.name() );
assertEquals( "", joinTableAnno.schema() );
assertEquals( 0, joinTableAnno.joinColumns().length );
assertEquals( 0, joinTableAnno.inverseJoinColumns().length );
assertEquals( 0, joinTableAnno.uniqueConstraints().length );
}
代码示例来源:origin: hibernate/hibernate-orm
ad.setValue( "name", table.name() );
ad.setValue( "schema", table.schema() );
ad.setValue( "catalog", table.catalog() );
ad.setValue( "uniqueConstraints", table.uniqueConstraints() );
ad.setValue( "joinColumns", table.joinColumns() );
代码示例来源:origin: hibernate/hibernate-orm
catalog = assocTable.catalog();
schema = assocTable.schema();
tableName = assocTable.name();
代码示例来源:origin: hibernate/hibernate-orm
assertAnnotationNotPresent( JoinColumn.class );
JoinTable joinTableAnno = reader.getAnnotation( JoinTable.class );
assertEquals( "cat1", joinTableAnno.catalog() );
assertEquals( "table1", joinTableAnno.name() );
assertEquals( "schema1", joinTableAnno.schema() );
代码示例来源:origin: org.hibernate/hibernate-annotations
catalog = joinTable.catalog();
secondaryTableNameContext = new SecondaryTableNameSource( joinTable.name() );
joinColumns = joinTable.joinColumns();
代码示例来源:origin: io.ebean/ebean
/**
* Return the full table name
*/
private String getFullTableName(JoinTable joinTable) {
StringBuilder sb = new StringBuilder();
if (!StringHelper.isNull(joinTable.catalog())) {
sb.append(joinTable.catalog()).append(".");
}
if (!StringHelper.isNull(joinTable.schema())) {
sb.append(joinTable.schema()).append(".");
}
sb.append(joinTable.name());
return sb.toString();
}
代码示例来源:origin: hibernate/hibernate-orm
assertAnnotationPresent( JoinTable.class );
JoinTable joinTableAnno = reader.getAnnotation( JoinTable.class );
assertEquals( "cat1", joinTableAnno.catalog() );
assertEquals( "table1", joinTableAnno.name() );
assertEquals( "schema1", joinTableAnno.schema() );
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Return the full table name
*/
private String getFullTableName(JoinTable joinTable) {
StringBuilder sb = new StringBuilder();
if (!StringHelper.isNull(joinTable.catalog())) {
sb.append(joinTable.catalog()).append(".");
}
if (!StringHelper.isNull(joinTable.schema())) {
sb.append(joinTable.schema()).append(".");
}
sb.append(joinTable.name());
return sb.toString();
}
代码示例来源:origin: org.avaje/ebean
/**
* Return the full table name
* @param joinTable
* @return
*/
private String getFullTableName(JoinTable joinTable) {
StringBuilder sb = new StringBuilder();
if (!StringHelper.isNull(joinTable.catalog())){
sb.append(joinTable.catalog()).append(".");
}
if (!StringHelper.isNull(joinTable.schema())){
sb.append(joinTable.schema()).append(".");
}
sb.append(joinTable.name());
return sb.toString();
}
代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-server
/**
* Return the full table name
* @param joinTable
* @return
*/
private String getFullTableName(JoinTable joinTable) {
StringBuilder sb = new StringBuilder();
if (!StringHelper.isNull(joinTable.catalog())){
sb.append(joinTable.catalog()).append(".");
}
if (!StringHelper.isNull(joinTable.schema())){
sb.append(joinTable.schema()).append(".");
}
sb.append(joinTable.name());
return sb.toString();
}
代码示例来源:origin: hibernate/hibernate-orm
assertEquals( "catalog1", joinTableAnno.catalog() );
assertEquals( "table1", joinTableAnno.name() );
assertEquals( "schema1", joinTableAnno.schema() );
代码示例来源:origin: org.hibernate/hibernate-annotations
ad.setValue( "name", table.name() );
ad.setValue( "schema", table.schema() );
ad.setValue( "catalog", table.catalog() );
ad.setValue( "uniqueConstraints", table.uniqueConstraints() );
ad.setValue( "joinColumns", table.joinColumns() );
代码示例来源:origin: SAP/olingo-jpa-processor-v4
IntermediateJoinTable(final IntermediateNavigationProperty intermediateProperty, final JoinTable jpaJoinTable,
final IntermediateSchema schema) {
super();
this.intermediateProperty = intermediateProperty;
this.jpaJoinTable = jpaJoinTable;
this.sourceType = intermediateProperty.getSourceType();
this.jpaEntityType = schema.getEntityType(jpaJoinTable.catalog(), jpaJoinTable.schema(), jpaJoinTable.name());
}
代码示例来源:origin: org.hibernate/hibernate-annotations
catalog = assocTable.catalog();
schema = assocTable.schema();
tableName = assocTable.name();
代码示例来源:origin: org.batoo.jpa/batoo-jpa
/**
* @param locator
* the locator
* @param annotation
* the annotation
*
* @since 2.0.0
*/
public JoinTableMetadaImpl(AbstractLocator locator, JoinTable annotation) {
super();
this.locator = locator;
this.catalog = annotation.catalog();
this.schema = annotation.schema();
this.name = annotation.name();
for (final JoinColumn joinColumn : annotation.joinColumns()) {
this.joinColumns.add(new JoinColumnMetadataImpl(locator, joinColumn));
}
for (final JoinColumn joinColumn : annotation.inverseJoinColumns()) {
this.inverseJoinColumns.add(new JoinColumnMetadataImpl(locator, joinColumn));
}
for (final UniqueConstraint constraint : annotation.uniqueConstraints()) {
this.uniqueConstraints.add(new UniqueConstraintMetadataImpl(locator, constraint));
}
}
代码示例来源:origin: toplink.essentials/toplink-essentials
/**
* INTERNAL:
*/
public MetadataJoinTable(JoinTable joinTable, MetadataLogger logger) {
this(logger);
if (joinTable != null) {
m_name = joinTable.name();
m_schema = joinTable.schema();
m_catalog = joinTable.catalog();
m_joinColumns = joinTable.joinColumns();
m_inverseJoinColumns = joinTable.inverseJoinColumns();
processName();
processUniqueConstraints(joinTable.uniqueConstraints());
}
}
代码示例来源:origin: com.caucho/resin
public JoinTableConfig(JoinTable joinTable)
{
setName(joinTable.name());
setCatalog(joinTable.catalog());
setSchema(joinTable.schema());
for (JoinColumn joinColumn : joinTable.joinColumns()) {
JoinColumnConfig joinColumnConfig = new JoinColumnConfig(joinColumn);
addJoinColumn(joinColumnConfig);
}
for (JoinColumn joinColumn : joinTable.inverseJoinColumns()) {
JoinColumnConfig joinColumnConfig = new JoinColumnConfig(joinColumn);
addInverseJoinColumn(joinColumnConfig);
}
}
内容来源于网络,如有侵权,请联系作者删除!