database « netbeans « Java Enterprise Q&A





1. DateInput Cannot be Persisted to DB via Toplink    stackoverflow.com

I am using Netbeans 6.9 on Windows XP. I created master/detail form on a DB table having many date columns. When I try to save a sample record the date input ...

2. Remote database connection problem    forums.netbeans.org

Remote database connection problem Goto page 1, 2 Next NetBeans Forums -> Java EE Users ...

3. CONNECTING TO MS ACCESS DATABASE    forums.netbeans.org

HI I have a made up table in MS Access and want to eventually bring those fields and data from the MS Access database table to a java application. I want ...

4. Translating classes into relational database tables    forums.netbeans.org

Hello I wonder if anyone can advise me here; I have an application which has classes like this: Code: public class Order implements Serializable { private int ...

5. Connecting to Database Table    forums.netbeans.org

harini19 Joined: 29 Apr 2009 Posts: 28 Location: India Posted: Wed Apr 29, 2009 12:00 pm Post subject: Connecting to Database Table I'm new to EE Technology. I'm ...

6. WebSevice return database rows?    forums.netbeans.org

Posted: Thu May 14, 2009 4:16 pm Post subject: WebSevice return database rows? Hi All, I need to create a web service that will perform a query on ...

7. [solved]how to connect to database without storing userid and password in code    forums.netbeans.org

Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup("jdbc/myJDBC"); [b]Connection con = ds.getConnection("tony","tonydb")[/b]; ...

8. VIR database    forums.netbeans.org

Hello, I have downloaded the MySQL database samples from http://wiki.netbeans.org/FaqDatabaseConnectivityTravelDb including VIR. It is not a Derby database but no problem. For those that have installed MySQL into NB you can ...

9. Analyse the error of database connection factory in web report development    forums.netbeans.org

Posted: Thu Jul 23, 2009 3:04 pm Post subject: Analyse the error of database connection factory in web report development Problem For the users of web report tool, ...





10. Netbeans DbSchema file with more than one real db schema?    forums.netbeans.org

Hi, I have one (database) schema that has tables that has related fields (contraints) of another (database) schema in the same MySQL server, I would like that JPA entity wizard could ...

11. Re: Netbeans DbSchema file with more than one real db schema?    forums.netbeans.org

I believe there is an advanced tab on the databasea connection wizard which lets you specify things like database schema (or leave it out) and perhaps the right settings there can ...

12. Database Connection Issues    forums.netbeans.org

Hey All. Its my second day really trying to learn Java, and so far ive been successful with everything, until today, around 4 hours ago, when i decided to try and ...

13. new connection to the Database    forums.netbeans.org

When i tried to add a new connection to the Database (java DB (network)) on port 1527 host being localhost it gives me a error message : Unable to add connection. ...

14. Netbeans ex. Of MVC model 2 db connections    forums.netbeans.org

ceyezumma Joined: 02 Feb 2009 Posts: 121 Posted: Fri Sep 11, 2009 4:18 pm Post subject: Netbeans ex. Of MVC model 2 db connections Topic The topic of ...

15. Database Connetivity    forums.netbeans.org

16. How to connect to a database    forums.netbeans.org

Dear user, I'm using netbeans 6.1. I'm trying to link a apache derby databse to my project. i followed the sun java tutorial, and type this code. Class.forName("org.apache.derby.jdbc.EmbeddedDriver"), and other code ...





17. Problem connecting to a DB through a Netbeans developed and deployed WS    forums.netbeans.org

Daniele Development-ML Posted via mailing list. Posted: Fri Sep 05, 2008 11:59 am Post subject: Problem connecting to a DB through a Netbeans developed and deployed WS Hello ...

18. NB 6.8 - Problem in wizzard "Entitiy Classes form Database" and remote server    forums.netbeans.org

Hi... Here my problem, i hope somboy can help: I have install a glassfish v3 final server with a mysql database on a remote server. On my developer machine i have ...

19. how to transfer a database from one machine to another    forums.netbeans.org

i got a problem that when i copy the data in the mysql folder to another computer's mysql data folder, i can see the databases and the data tables, but the ...

21. Single Page Interface (CRUD Application from a Database 2.0 vs 1.2)    forums.netbeans.org

adhikari Joined: 09 Jul 2009 Posts: 3 Posted: Fri Jan 08, 2010 7:12 pm Post subject: Single Page Interface (CRUD Application from a Database 2.0 vs 1.2) Hello ...

22. connect database problem on NB6.8    forums.netbeans.org

I just downloaded NB6.8 and try to learn how to work with database. I followed the sample on website to setup database and jdbc code. after that, I run my code ...

23. Clientside file upload to server (or Database)    forums.netbeans.org

I am using Visual Web and need to get a file upload (actually 4 files in one go) the user has no control over this and the names and locations are ...

24. Oracle database not support to Vista    forums.netbeans.org

25. Re: Oracle database not support to Vista    forums.netbeans.org

26. Netbeans 6.8 Access Database Connection    forums.netbeans.org

Hi guys, not sure if this this is the right place to post this as im new here, but any help would be greatly appreciated. For my coursework at college I ...

27. Remote database connection problem    forums.netbeans.org

Sorry if is irrelevant. I have been sick for a while and catching up. Before making any changes in ur admin console, make a copy of your domain.xml or know how ...

28. Post password encryption and store in database    forums.netbeans.org

How can i encrypt passwords with md5 or sha1? What should i use to retrieve the password from the database using servlets (decription)? Thnanks in advance.

29. SQL query will not be permanently stored in database    forums.netbeans.org

zno Joined: 19 Apr 2010 Posts: 1 Posted: Mon Apr 19, 2010 7:55 pm Post subject: SQL query will not be permanently stored in database Hi! I'm using ...

30. inserting data to database without using CRUD in nb 6.8    forums.netbeans.org

Hi ,i am making an project through web application in netbeans 6.8 and the database i am using is mysql. I can't find any way to use insert into query with ...

31. Is it above correct statement insert date in Access database table    forums.netbeans.org

String sqlCommand2= "INSERT INTO Orders VALUES('1020','0020','"+new java.util.Date()+"','"+new java.util.Date()+"',"+OrderTotals2.getTotal()+","+OrderTotals2.getShipping()+","+OrderTotals2.getTax()+")" ; // OrderNumber, CustID,date-ordered,date-shipped,.... sttmnt1.executeUpdate(sqlCommand2);

32. cannot connect to mySql database    forums.netbeans.org

I've given Class.forName("com.mysql.jdbc.Driver"); String conURL="jdbc:mysql://localhost:3306/practice"; con=DriverManager.getConnection(conURL); in a class which is accesing my database created in MySql using phpMyadmin. I've also downloaded \mysql-connector-java-5.1.13\mysql-connector-java-5.1.13-bin\com\mysql\jdbc file of mysql but do not know how ...

33. Entiry classes from database wizard and Postgresql domains    forums.netbeans.org

I am trying to create entity classes form database with Netbeans wizard "Entiry classes from database". But if the field type in database table is an a custom domain the type ...

34. [beginner] CRUD - changing db schema [solved]    forums.netbeans.org

Dear people of the forum, 0.) I am just learning Java EE and NetBeans... So I have examined the Sample projects till now - I suppose one of them created the DB connection: "jdbc/sample". 1.) In this DB, I created a new schema, and my tables via NetBeans' sql command window. 2.) I created a new web application project. 3.) I ...

35. Using web services to update database    forums.netbeans.org

It is simple. In fact in your web service you work with entities that persistence in a database. You can develop a simple exercise: a web service with two operations, one for read an entity and the other one for write it on the database. The only thing you have to do in the client is update the entity. I mean ...

36. How to convert to embedded database    forums.netbeans.org

I must say, the sarcasm factor runs high on this forum. I'll take this to mean, "Yes, Eric, an embedded database will avoid the need for a server. Here's a link for converting" I realize this is all old-news to many of you, but for someone who is just getting started - for whom derby is a type of hat and ...

37. Can you bind form controls with a database?    forums.netbeans.org

38. Connected database doesn't contain tables    forums.netbeans.org

A couple of thoughts . . . Make sure you're connecting to the correct schema. I don't know how the jdbc/odbc bridge works, but at least in other threads the problem came about because the wrong schema was chosen. For example, the default Derby (Java DB) schema is APP, but when you connect as a user, the connected schema is the ...

39. How to insert data in database.    forums.netbeans.org

I'm designing an application which using jsf and jpa. I want to insert the data in the database. I tried using named query but I'm getting an error: Exception Description: Syntax error parsing the query line 1, column 0: unexpected token [INSERT]. When I try to do it this way: em.getTransaction().begin(); em.persist(objDefectInfo); em.getTransaction().commit(); I get the following error: Cannot use an ...

40. Problem with classes from Database    forums.netbeans.org

41. Displaying database data on web page    forums.netbeans.org

Silverlance Joined: 20 Apr 2011 Posts: 1 Posted: Wed Apr 20, 2011 11:28 am Post subject: Displaying database data on web page Hey i am completely new to Java EE and was just wondering how would i go about getting data from a mySQL database and displaying it on a web page. I have an app that has ...

42. [EE5] Build CRUD Methods from DB    forums.netbeans.org

Hey, some weeks ago I start with my first JSF Project. I create some JSF Pages and I have also a MySQL database filled with data. Now I'm searching for a easy way to generate all the CRUD Methodes for the database. I know that this is possible with Java EE 6 and Netbeans (Create Entities, Create EJBs, Create JSFMB) but ...

43. Database input    forums.netbeans.org

For a couple day I have been searching a tutorial in documentation to find one which would show me how to make a form which will add record to database. I have created web application and a database, I retreive database records, but I am having problems implementing a form on jsp page that would add new records to database... Can ...

44. Problem in saving the , , values in database using xml    forums.netbeans.org

Hi I am developing a java swing based application. In which I send data in xml format and save it on a online webstore through API calls. When I send the data in following format 3, 3, 3. It saves only 3 not the whole value means It is ignoring the values , , . Here is my xml code which ...

45. webuijsf:table not showing all data in database    forums.netbeans.org

I created a table and set the sourceData up correctly because I can get data from my database. Unfortunately, I am having problems getting all of the available data. I am only seeing 5 rows no matter how much data I have available. I have set paginateButton and paginateControls to "true". Here's a snippet. Code: ...

46. How to connect NetBeans to Berkeley DB 11gR2 ?    forums.netbeans.org

48. Database APP saving blob to secundary table    forums.netbeans.org

Yadiel Joined: 30 Sep 2011 Posts: 1 Posted: Fri Sep 30, 2011 12:21 am Post subject: Database APP saving blob to secundary table Hello. I need a little help with this, I have been trying to find a solution to this all the week and I'm really stuck. I'm trying to save an image into a database using ...

49. Connection Between front end and DB    forums.netbeans.org

50. GUIDs and databases    forums.netbeans.org

51. Take data form a html form and save it to a Microsoft Access database    forums.netbeans.org

I have a html page where users in put their name and other info. I need to know how do I take that data and save it to the database. I know in the html page in the form action tag you specify where you want to send the data. But do i use a class/jsp or a servlet to take ...

52. Unable to establish a connection to database    forums.netbeans.org

53. Showing Image Stored In DataBase    forums.netbeans.org

Hello Friends, I have images stored in MySQL database. In a blob field. In a desktop application i have used [b]blob b=rs.getBlob("Picture"); byte[] buf=b.getBytes((long)1,(int)b.length()); ImageIcon imgIcon= new ImageIcon(buf); Image img=imgIcon.getImage(); Graphics g=image.getGraphics(); g.drawImage(img,0,0,320,240,image);[/b] the thing worked fine. But now i have to show images over web. I am not able to uderstand that how to show images. As i m unable ...

54. recapturing db schema    forums.netbeans.org

I have a database from which I've extracted a number of entity classes in a NetBeans EJB project (part of an Enterprise project). Now I've added a table and I want to create an entity class for it. So I right-click the EJB project and select "New / Entity Class from Database". Naturally, the new table doesn't appear under "Available Tables" ...

55. Building a Tree From Database Data    forums.netbeans.org

I am using link http://www.netbeans.org/kb/60/web/databasetree.html to accomplish followings. Please let know how I can make another layer from DEPDATE -> DEPCITY Travel Information v Able, Tony v 2008-06-16 v Oakland Part of code: // Create a new trip node TreeNode tripNode = new TreeNode(); tripNode.setId("trip" + tripDataProvider.getValue("TRIP.TRIPID").toString()); tripNode.setText( tripDataProvider.getValue("TRIP.DEPDATE").toString()); tripNode.setUrl("/faces/Trip.jsp?tripId=" + tripDataProvider.getValue("TRIP.TRIPID").toString()); innerChildren.add(tripNode); hasNext = tripDataProvider.cursorNext(); Thanks kam -----Original Message----- From: ...

56. Problem with connection to the database    forums.netbeans.org

Connection c; try { DriverManager.getConnection("jdbc:derby://localhost:1527/db2", "usr", "usr"); } catch (SQLException ex) { Logger.getLogger(DesktopApplication3View.class.getName()).log(Level.SEVERE, null, ex); ...

57. Image and Database    forums.netbeans.org

Hello, It is possible for me to upload the image file on the server using Upload component and save it in a server file. After that, I also can display the saved image on the web page (*.jsp) by using Image Component. Now my problem is that, I want to save the uploaded file into the database table first and from ...

58. Connecting to MS Access database help    forums.netbeans.org

59. Unable to connect t o database    forums.netbeans.org

hello everyone, I am using netbeans 6.1 with mysql and have mysql connector 5.0.8. Although i have imported java.sql after setting language="java" in page directive I still have a problem saying that com.mysql.jdbc.driver does not exist in the statement DriverManager.registerDriver(new com.mysql.jdbc.Driver()); i also tried Class.forName("com.mysql.jdbc.Driver").newInstanceOf(); but the same error persists.. PLEASE ANyONE Help me quickly... i need to complete my project ...

60. Two linked apps,web app to display database table    forums.netbeans.org

Code: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package musiclibrarypersistenceapp.app; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; /** * * @author depot */ @Entity @Table(name = "content") @NamedQueries({@NamedQuery(name = "content.findAll", ...