private AnnotationException buildIllegalSortCombination() { return new AnnotationException( String.format( "Illegal combination of annotations on %s. Only one of @%s, @%s and @%s can be used", safeCollectionRole(), Sort.class.getName(), SortNatural.class.getName(), SortComparator.class.getName() ) ); }
private XClass getCollectionType() { if ( AnnotationBinder.isDefault( targetEntity, buildingContext ) ) { if ( collectionType != null ) { return collectionType; } else { String errorMsg = "Collection has neither generic type or OneToMany.targetEntity() defined: " + safeCollectionRole(); throw new AnnotationException( errorMsg ); } } else { return targetEntity; } }
javax.persistence.OrderBy.class.getName(), OrderBy.class.getName(), safeCollectionRole() if ( ! hadExplicitSort && !hadOrderBy ) { throw new AnnotationException( "A sorted collection must define and ordering or sorting : " + safeCollectionRole() ); "Could not instantiate comparator class [%s] for %s", comparatorClass.getName(), safeCollectionRole()
private XClass getCollectionType() { if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) { if ( collectionType != null ) { return collectionType; } else { String errorMsg = "Collection has neither generic type or OneToMany.targetEntity() defined: " + safeCollectionRole(); throw new AnnotationException( errorMsg ); } } else { return targetEntity; } }
private AnnotationException buildIllegalSortCombination() { return new AnnotationException( String.format( "Illegal combination of annotations on %s. Only one of @%s, @%s and @%s can be used", safeCollectionRole(), Sort.class.getName(), SortNatural.class.getName(), SortComparator.class.getName() ) ); }
if ( orderBy != null && hqlOrderBy != null ) { throw new AnnotationException( "Cannot use sql order by clause in conjunction of EJB3 order by clause: " + safeCollectionRole() ); throw new AnnotationException( "Comparator not implementing java.util.Comparator class: " + comparator.getName() + "(" + safeCollectionRole() + ")" ); throw new AnnotationException( "Could not instantiate comparator class: " + comparator.getName() + "(" + safeCollectionRole() + ")" ); throw new AnnotationException( "A sorted collection has to define @Sort: " + safeCollectionRole() );
private XClass getCollectionType() { if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) { if ( collectionType != null ) { return collectionType; } else { String errorMsg = "Collection has neither generic type or OneToMany.targetEntity() defined: " + safeCollectionRole(); throw new AnnotationException( errorMsg ); } } else { return targetEntity; } }
private XClass getCollectionType() { if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) { if ( collectionType != null ) { return collectionType; } else { String errorMsg = "Collection has neither generic type or OneToMany.targetEntity() defined: " + safeCollectionRole(); throw new AnnotationException( errorMsg ); } } else { return targetEntity; } }
private XClass getCollectionType() { if ( AnnotationBinder.isDefault( targetEntity, buildingContext ) ) { if ( collectionType != null ) { return collectionType; } else { String errorMsg = "Collection has neither generic type or OneToMany.targetEntity() defined: " + safeCollectionRole(); throw new AnnotationException( errorMsg ); } } else { return targetEntity; } }
javax.persistence.OrderBy.class.getName(), OrderBy.class.getName(), safeCollectionRole() if ( ! hadExplicitSort && !hadOrderBy ) { throw new AnnotationException( "A sorted collection must define and ordering or sorting : " + safeCollectionRole() ); "Could not instantiate comparator class [%s] for %s", comparatorClass.getName(), safeCollectionRole()
if ( orderBy != null && hqlOrderBy != null ) { throw new AnnotationException( "Cannot use sql order by clause in conjunction of EJB3 order by clause: " + safeCollectionRole() ); throw new AnnotationException( "Comparator not implementing java.util.Comparator class: " + comparator.getName() + "(" + safeCollectionRole() + ")" ); throw new AnnotationException( "Could not instantiate comparator class: " + comparator.getName() + "(" + safeCollectionRole() + ")" ); throw new AnnotationException( "A sorted collection has to define @Sort: " + safeCollectionRole() );
if ( orderBy != null && hqlOrderBy != null ) { throw new AnnotationException( "Cannot use sql order by clause in conjunction of EJB3 order by clause: " + safeCollectionRole() ); throw new AnnotationException( "Comparator not implementing java.util.Comparator class: " + comparator.getName() + "(" + safeCollectionRole() + ")" ); throw new AnnotationException( "Could not instantiate comparator class: " + comparator.getName() + "(" + safeCollectionRole() + ")" ); throw new AnnotationException( "A sorted collection has to define @Sort: " + safeCollectionRole() );
if ( orderBy != null && hqlOrderBy != null ) { throw new AnnotationException( "Cannot use sql order by clause in conjunction of EJB3 order by clause: " + safeCollectionRole() );