Skip to content

Commit

Permalink
docs: fix Jakarta occurences in code comments IQSS#8305
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Mar 25, 2022
1 parent d4add3b commit c746e3f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
import jakarta.persistence.TypedQuery;
//import javax.validation.constraints.NotNull;
//import jakarta.validation.constraints.NotNull;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public Response showControlledVocabularyForSubject() {
@GET
@Path("loadNAControlledVocabularyValue")
public Response loadNAControlledVocabularyValue() {
// the find will throw a javax.persistence.NoResultException if no values are in db
// the find will throw a jakarta.persistence.NoResultException if no values are in db
// datasetFieldService.findNAControlledVocabularyValue();
TypedQuery<ControlledVocabularyValue> naValueFinder = em.createQuery("SELECT OBJECT(o) FROM ControlledVocabularyValue AS o WHERE o.datasetFieldType is null AND o.strValue = :strvalue", ControlledVocabularyValue.class);
naValueFinder.setParameter("strvalue", DatasetField.NA_VALUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public VariableFormatType findVariableFormatTypeByName(String name) {
VariableFormatType type = null;
try {
type = (VariableFormatType)query.getSingleResult();
} catch (javax.persistence.NoResultException e) {
} catch (jakarta.persistence.NoResultException e) {
// DO nothing, just return null.
}
return type;
Expand All @@ -116,7 +116,7 @@ public VariableIntervalType findVariableIntervalTypeByName(String name) {
VariableIntervalType type = null;
try {
type=(VariableIntervalType)em.createQuery(query).getSingleResult();
} catch (javax.persistence.NoResultException e) {
} catch (jakarta.persistence.NoResultException e) {
// DO nothing, just return null.
}
return type;
Expand All @@ -127,7 +127,7 @@ public SummaryStatisticType findSummaryStatisticTypeByName(String name) {
SummaryStatisticType type = null;
try {
type = (SummaryStatisticType) em.createQuery(query).getSingleResult();
} catch (javax.persistence.NoResultException e) {
} catch (jakarta.persistence.NoResultException e) {
// DO nothing, just return null.
}
return type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.io.IOException;
import java.util.List;
import java.util.logging.Logger;
//import javax.ejb.EJB;
//import jakarta.ejb.EJB;

/**
* Used by the IngestServiceBean to redistribute a zipped Shapefile*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import jakarta.inject.Singleton;
import javax.sql.DataSource;

// Find docs here: https://javaee.github.io/javaee-spec/javadocs/javax/annotation/sql/DataSourceDefinition.html
// Find docs here: https://jakarta.ee/specifications/annotations/2.1/apidocs/jakarta.annotation/jakarta/annotation/sql/datasourcedefinition
@Singleton
@DataSourceDefinition(
name = "java:app/jdbc/dataverse",
Expand Down

0 comments on commit c746e3f

Please sign in to comment.