开发者

How do i use a database and java to search for an object if given a description?

开发者 https://www.devze.com 2023-04-12 14:11 出处:网络
i have a school project for biology where we need to make something to help us classify animals. We will be given a description with key traits that will define which domain, kingdom etc. wi开发者_如何

i have a school project for biology where we need to make something to help us classify animals. We will be given a description with key traits that will define which domain, kingdom etc. wi开发者_如何学JAVAll be in. My question is, how could i apply a database to this problem, and can i use java to search through it?


Yes, you can do that. Plan and implement table structure (one or more tables) and use Java with SQL to retrieve data from the database.

Below there are links to tutorials:

Java JDBC Tutorial

SQL Tutorial

And here are samples on this point:

Real Gagnon Java Database examples


You should also use some Object Relational Mapping techniques . This is a good tutorial Mapping Objects to Relational Databases: O/R Mapping In Detail

0

精彩评论

暂无评论...
验证码 换一张
取 消