netbeans6.0

View: New views
2 Messages — Rating Filter:   Alert me  

netbeans6.0

by Steve Howerton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you have some understanding of the netbeans6.0 concerning binding and queries?

I have a jdesktop program from a tutorial using the netbeans ide.

it automaticlally sets the query property to
SELECT c FROM Content c (which is somewhat foreign to me)
however;

I'd like to have another example of a query that for sure is written sound (maybe simply LIMIT the results) so I can move it around in the program until I figure out how it works.

I can't seem to find any info on the createQuery();

and apply it to change what what populates the table

the original query is
query = entityManager.createQuery("SELECT c FROM Content c"");
ultimately i'd like to use something like this;
query = entityManager.createQuery("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\"");
do you happen to have any information on the procedure for changing and implementing a query?
Thanks
-Steve
p.s String like = searchJTextField1.getText();

Re: netbeans6.0

by Steve Howerton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I actually altered a query.

Is there a site that would be better suited to answer question concerning netbeans6.0?