private void addNamedQuery(GraphService<JPANamedQueryModel> namedQueryService, JPAEntityModel jpaEntity, JavaAnnotationTypeReferenceModel reference) { String name = getAnnotationLiteralValue(reference, "name"); String query = getAnnotationLiteralValue(reference, "query"); LOG.info("Found query: " + name + " -> " + query); JPANamedQueryModel namedQuery = namedQueryService.create(); namedQuery.setQueryName(name); namedQuery.setQuery(query); namedQuery.setJpaEntity(jpaEntity); }
private void addNamedQuery(GraphService<JPANamedQueryModel> namedQueryService, JPAEntityModel jpaEntity, JavaAnnotationTypeReferenceModel reference) { String name = getAnnotationLiteralValue(reference, "name"); String query = getAnnotationLiteralValue(reference, "query"); LOG.info("Found query: " + name + " -> " + query); JPANamedQueryModel namedQuery = namedQueryService.create(); namedQuery.setQueryName(name); namedQuery.setQuery(query); namedQuery.setJpaEntity(jpaEntity); }
String ejbName = getAnnotationLiteralValue(entityAnnotationTypeReference, "name"); if (ejbName == null) String tableName = tableAnnotationTypeReference == null ? ejbName : getAnnotationLiteralValue(tableAnnotationTypeReference, "name"); if (tableName == null) String catalogName = tableAnnotationTypeReference == null ? null : getAnnotationLiteralValue(tableAnnotationTypeReference, "catalog"); String schemaName = tableAnnotationTypeReference == null ? null : getAnnotationLiteralValue(tableAnnotationTypeReference, "schema");
String ejbName = getAnnotationLiteralValue(entityAnnotationTypeReference, "name"); if (ejbName == null) String tableName = tableAnnotationTypeReference == null ? ejbName : getAnnotationLiteralValue(tableAnnotationTypeReference, "name"); if (tableName == null) String catalogName = tableAnnotationTypeReference == null ? null : getAnnotationLiteralValue(tableAnnotationTypeReference, "catalog"); String schemaName = tableAnnotationTypeReference == null ? null : getAnnotationLiteralValue(tableAnnotationTypeReference, "schema");