Reputation: 432
I'm using a LIKE operator in my Query
@Query("SELECT * FROM item where barcodes LIKE :barcode")
List<Item> getItemWithBarcode(String barcode);
Is there any way that i can append something(appendedTxt
) to the bar code? Like this
@Query("SELECT * FROM item where barcodes LIKE (:barcode + 'appendedTxt')")
List<Item> getItemWithBarcode(String barcode);
Upvotes: 5
Views: 2363