Forum: Java Mar 9th, 2009 |
| Replies: 1 Views: 903 Name:
The name of this question is rookie_question_System.out.println
Hello and Thank you in advance for any assistance.
Purpose: |
Forum: Java Mar 7th, 2009 |
| Replies: 0 Views: 451 Name:
The name of this question is bundled_resources
Hello and Thank you in advance for any assistance.
Purpose: |
Forum: Java Mar 7th, 2009 |
| Replies: 1 Views: 549 Name:
The name of this question is bundled_resources
Hello and Thank you in advance for any assistance.
Purpose: |
Forum: Java Mar 6th, 2009 |
| Replies: 1 Views: 549 Hello
I have a couple classes here and a resource bundles and a JSF that sends the key to the class (MessageProvider) and MessageManager.java gets the resource for the selectOneMenu component... |
Forum: Java Sep 14th, 2008 |
| Replies: 0 Views: 2,388 SELECT b.book_num,b.book_start_date,b.book_start_time,book_end_time,b.stu_num,i.instr_lname FROM instructor AS i,booking AS b
WHERE i.instr_num=i.instr_num AND i.instr_num=b.instr_num;
[/code]
... |
Forum: Java Sep 11th, 2008 |
| Replies: 0 Views: 3,379 is this true?
hql use xml to create results that hibernate can use. Simialar to the SQL?
here is what I need in a table
SELECT... |
Forum: Java Sep 9th, 2008 |
| Replies: 6 Views: 1,825 I found the prob.
public void prerender() {
try {
if (dropDown1.getSelected() == null ) {
Option opt = getSessionBean1().getInstructorOptions()[0];
... |
Forum: Java Sep 8th, 2008 |
| Replies: 6 Views: 1,825 Could someone show me some techniques for debugging this code. I can't seem to think of a way to see what is in the list and arrays
-Steve |
Forum: Java Sep 7th, 2008 |
| Replies: 6 Views: 1,825 interesting. I wish I knew which array it was. Odds are I'll find it. is it where it says opt++;?
instructorOtions=new Option[teacherList.size()];
int i=0;
for(Teacher... |
Forum: Java Sep 7th, 2008 |
| Replies: 6 Views: 1,825 I am very new at this hibernate animal but I will post the code that seems relevant to what your questions seek. Oh and all I would like to do at this point is somehow us the teachers id to aquire... |
Forum: Java Sep 7th, 2008 |
| Replies: 6 Views: 1,825 Hello.
I have built a hibernate project and the dropdown list and the table load data to the web page but the drop down list is not poulated with the names (derived from the xml id)
There is a lot... |
Forum: Java Sep 2nd, 2008 |
| Replies: 2 Views: 480 Ok. Thanks. I was wondering about this code. I built a sessionbean class based on this(above) code. I have a db,mapping,3 entity classes too. I was able to get it in a web page but I can't... |
Forum: Java Sep 1st, 2008 |
| Replies: 0 Views: 308 I am trying to populate a dropdown1 list with instructor names determined by the instructor id.
is this code suffient? I have the binding write as far as I can tell but no string name population of... |
Forum: Java Aug 29th, 2008 |
| Replies: 1 Views: 410 it seem the code above is designating a primary key to use when the session bean loads classes and hibernate build the query and runs it and the JSF excepts it. |
Forum: Java Aug 28th, 2008 |
| Replies: 2 Views: 480 Hello I have been studing the tutorial at
http://http://www.netbeans.org/kb/61/web/hibernate-vwp.html
I am starting to understand how data from a database gets to a webpage to a table via a... |
Forum: Java Aug 28th, 2008 |
| Replies: 1 Views: 410 Hibernate: select trips0_.PERSONID as PERSONID1_, trips0_.TRIPID as TRIPID1_, trips0_.TRIPID as TRIPID1_0_, trips0_.PERSONID as PERSONID1_0_, trips0_.DEPDATE as DEPDATE1_0_, trips0_.DEPCITY as... |
Forum: Java Aug 27th, 2008 |
| Replies: 2 Views: 571 Hibernate: select trips0_.PERSONID as PERSONID1_, trips0_.TRIPID as TRIPID1_, trips0_.TRIPID as TRIPID1_0_, trips0_.PERSONID as PERSONID1_0_, trips0_.DEPDATE as DEPDATE1_0_, trips0_.DEPCITY as... |
Forum: Java Aug 27th, 2008 |
| Replies: 1 Views: 4,723 in this xml mapping file :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"... |
Forum: Java Aug 27th, 2008 |
| Replies: 2 Views: 571 I know it is a rookie question but how do I get the system to print what is in personList?
private void buildPersonOptions() {
List<Person> personList = null;
... |
Forum: Java Aug 24th, 2008 |
| Replies: 2 Views: 1,440 Has any one worked with the HibernateTravelApp tutorial
-Steve |
Forum: Java Aug 24th, 2008 |
| Replies: 2 Views: 1,440 Is there someone that could answer questions concerning the HibernateTravelApp tutorial. I have written it a couple times per the tutorial and I am presently remodeling it to fit my own MySQL... |
Forum: Java Aug 21st, 2008 |
| Replies: 3 Views: 766 yes
This is hibernate.
I believe(correct me if I am wrong)
the id section of code seems to be setting and incrementing a unique primary key
and likewise I believe the second section of code is... |
Forum: Java Aug 21st, 2008 |
| Replies: 2 Views: 456 Awesome.
thanks
I have another thread out there to. {primary key,and,Option[]}
could you look it over and see if it is answerable?
Thanks again
-Steve |
Forum: Java Aug 21st, 2008 |
| Replies: 0 Views: 468 Query q =session.createQuery("from Person");
? so there is a Query q named "from Person")
I don't understand how the actual query reads(via SQL).
Can someone explain this code:
because... |
Forum: Java Aug 21st, 2008 |
| Replies: 2 Views: 456 private void buildPersonOptions(){
List<Person> personList= null;
}
I put this code in and it asked to import the class Person.
as far as I know there is a null list(personList) of... |
Forum: Java Aug 21st, 2008 |
| Replies: 3 Views: 766 <id column="PERSONID" name="personId">
<generator class="increment"/>
</id>
What is this animal?
is it setting a primary key?
like wise
<set... |
Forum: Java May 15th, 2008 |
| Replies: 1 Views: 488 If I am adding components and queries to a JDesktopApplication (database) would it be safe to say I need a BenaInfo class extending SimpleBeanInfo and for lack of a better term sync them? |
Forum: Java May 15th, 2008 |
| Replies: 1 Views: 488 I am adding functionality to a tutorial which is a JDesktopApplication(Netbeans6.1)using Entity class from databases with Persistence unit and entitymanager.
I have components in place.
Can... |
Forum: Java May 13th, 2008 |
| Replies: 0 Views: 361 String like=searchJTextField1.getText();
query=entityManager.createQuery("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\"");
query.setParameter(like, searchJTextField1.getText());
... |
Forum: Java May 13th, 2008 |
| Replies: 3 Views: 1,032 exellent.
query.setMaxResults(10);
is my first manipulation of the original query.
now I must create a new query.
Thanks
-Steve |
Forum: Java May 13th, 2008 |
| Replies: 3 Views: 1,032 setMaxResults()
that seems very logical I will explore this.
Thanks
-Steve |
Forum: Java May 13th, 2008 |
| Replies: 0 Views: 1,079 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... |
Forum: Java May 13th, 2008 |
| Replies: 3 Views: 1,032 If netbeans ide has a queryproperty set to
SELECT c FROM Content c
How can I change this query to say ..limit the resultset to less records like 10 or 20 instead of the whole database.
I am not... |
Forum: Java May 13th, 2008 |
| Replies: 2 Views: 1,180 Scratch this one. As usual I made it much more complicated than it had to be. The solution was much easier than I made it |
Forum: Java May 12th, 2008 |
| Replies: 2 Views: 1,180 I think I need some of this:
try {
entityManager.getTransaction().commit();
entityManager.getTransaction().begin();
} catch (RollbackException... |
Forum: Java May 12th, 2008 |
| Replies: 2 Views: 1,180 I have the tutorial running with a entire database displayed.
I am working with the tutorial at:
http://www.netbeans.org/kb/articles/mysql.html
The above tutorial creates a jDesktopAPP. with... |
Forum: Java May 11th, 2008 |
| Replies: 1 Views: 556 in order to understand the code block above is this:
Using Introspection to Discover the Events A Bean Fires
a appropriate place to start? or is there a more efficient approach? |
Forum: Java May 11th, 2008 |
| Replies: 1 Views: 556 I am working with the tutorial at:
http://www.netbeans.org/kb/articles/mysql.html
Is there someone able to assist me in learning how to add a search functionality to the
above tutorial?
... |
Forum: Java May 11th, 2008 |
| Replies: 0 Views: 4,477 I am working with the tutorial at:
http://www.netbeans.org/kb/articles/mysql.html
can any one help me figure out why I can not set a query with this method?
entityManager =... |
Forum: Java May 10th, 2008 |
| Replies: 1 Views: 487 I am working with the tutorial at:
http://www.netbeans.org/kb/articles/mysql.html
I got rid of the second entity manager and the second list(searchEnityManager1 and searchList1 and bound the... |