Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: storing class in mysql

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default storing class in mysql

    Hi all
    I'm a little new in programming DATABASE
    but i need to store a class information to a database and when i need i want to receive it and parse it as fast as I could
    I want to crate the program theat if it need it can run on SQL Server.
    i have an ide that i will creat from the class an XML schema and read and write xml to the database.
    what do you think
    what is the best way to do it in the industry?

    tnx
    junnam


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: storing class in mysql

    The advantage of storing information in a relation database such as MySQL is for the information to be relational (google 'database normalization' for more information). Storing objects (or full string representations of those object) somewhat defeats that purpose. I would suggest you create a schema that best represents the information you want to store, then map that information it to the appropriate interface(es) and class(es). My .02. And for what its worth, I could barely read your question given the amount of spelling and grammar mistakes. Recommend you use a spellchecker, a better translator (if you are using one), or simply spend more time writing legibly.
    Last edited by copeg; September 20th, 2011 at 06:19 PM.

Similar Threads

  1. passing object and storing
    By jack_nutt in forum What's Wrong With My Code?
    Replies: 15
    Last Post: June 30th, 2011, 09:32 PM
  2. Storing radiobutton into file
    By aretium in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 31st, 2011, 10:21 AM
  3. storing data using form
    By anupam.j2ee in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 27th, 2010, 10:43 AM
  4. Storing data
    By Joyce in forum Collections and Generics
    Replies: 1
    Last Post: September 20th, 2010, 09:16 AM
  5. Storing in different types of variables
    By giorgos in forum Collections and Generics
    Replies: 0
    Last Post: November 22nd, 2009, 02:02 PM

Tags for this Thread