Dear Members,i try to exedent DSpace to store the bitstreams of one item in one bagit structur in the assetstore. However, i create a class that represent the bagit object and one class for the DAO object. To get a link between the item and bag i use a join table item2bagit to hold the item_id and bagit_id.
The Join Table is defined in the Bagit class with:
@OneToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST})
@JoinTable(
name = "item2bagit",
joinColumns = {@JoinColumn(name = "bagit_id") },
inverseJoinColumns = {@JoinColumn(name = "item_id") }
)
private Item item = null;
In the Bagit DAO implementation class i try to create the following
query to find a bag by the corresponding item_id:
Query query = createQuery(context, "select bagit from Bagit as bagit
join item2bagit on bagit.id = item2bagit.bagit_id and item2bagit.item_id
= :item_id")
.setParameter("item_id", item_id);
The item_id var is from type UUID. When DSpace now executing the query i
get a "unexpected token" exception.
Could someone give my a hint what is worng with this query? Many thanks, Stefan -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
