ceyesuma -4 Posting Pro
String like=searchJTextField1.getText();
query=entityManager.createQuery("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\"");
query.setParameter(like, searchJTextField1.getText());

is there someone that could tell me if this code is right?
thanks
-Steve

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.