data parsing from a file into java and then into a mysql database

后端 未结 5 1517
借酒劲吻你
借酒劲吻你 2021-01-24 08:43

I have .Data file given in the above format . I am writing a program in java that will take the values from the .data file and put it in the buffer. MY java program is connected

5条回答
  •  难免孤独
    2021-01-24 09:15

    you can bind your csv with java beans using opencsv. http://opencsv.sourceforge.net/

    you can make these beans persistent using an ORM framework, like Hibernate, Cayenne or with JPA which're based on annotations and map your fields to tables easily without creating any sql statement.

提交回复
热议问题