Skip to content
Snippets Groups Projects
Verified Commit 353bf900 authored by Martin Weise's avatar Martin Weise
Browse files

Fixed the identifier list

parent 80b2841c
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ import static jakarta.persistence.GenerationType.IDENTITY;
@NamedQuery(name = "Identifier.findSubsetIdentifier", query = "select i from Identifier i where i.database.id = ?1 and i.queryId = ?2 and i.type = 'SUBSET' ORDER BY i.id DESC"),
@NamedQuery(name = "Identifier.findViewIdentifier", query = "select i from Identifier i where i.database.id = ?1 and i.viewId = ?2 and i.type = 'VIEW' ORDER BY i.id DESC"),
@NamedQuery(name = "Identifier.findEarliest", query = "select i from Identifier i ORDER BY i.created ASC limit 1"),
@NamedQuery(name = "Identifier.findAll", query = "select i from Identifier i ORDER BY i.created DESC"),
})
public class Identifier implements Serializable {
......
package at.tuwien.repository;
import at.tuwien.entities.identifier.Identifier;
import org.jetbrains.annotations.NotNull;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
......@@ -11,6 +12,9 @@ import java.util.UUID;
@Repository
public interface IdentifierRepository extends JpaRepository<Identifier, UUID> {
@NotNull
List<Identifier> findAll();
/**
* Finds identifiers by given database id.
*
......
......@@ -253,7 +253,7 @@ export default {
if (!this.database || !this.database.identifiers) {
return []
}
return this.database.identifiers.filter(i => i.query_id === this.$route.params.subset_id)
return this.database.identifiers.filter(i => i.database_id === this.$route.params.database_id)
},
pid () {
return this.$route.query.pid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment