473,412 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Java - Do I need classes in my front end that match my database tables?

Hello. I am a little confused. Up to now my Java college projects have not been connected to a database. Last semester we serialized the data we wanted to keep.

I have been asked to do a class diagram for a new project that will have a database backend and a Java frontend. The project is for a cinema and will store movies etc in a database. If all the relevant info is in the database, do I need classes in the frontend that match the tables are do I just use the frontend to manipulate the info using sql?
Feb 13 '14 #1
3 1241
Yes, you need movie class. Store the data reading from database and display as and when it is required. Query database only when data is not available in memory.
Feb 13 '14 #2
You just use the frontend to manipulate the info using sql, if you are very clear about which columns of database table to map to which data members of java objects. No need to create similar hierarchies or relations in database and java frontend.

Hope it helps.
Feb 14 '14 #3
You just use the frontend to manipulate the info using sql, if you are very clear about which columns of database table to map to which data members of java objects. No need to create similar hierarchies or relations in database and java frontend.

Hope it helps.
Feb 14 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mike | last post by:
Hello, I'm trying to understand how to map hierarchical XML data to relational database tables, but I seem to be missing something. I'm not a database expert, but I know the basics. XML seems...
1
by: panu | last post by:
I just browsed the book on "Apache Jakarta Commons". Seems like Jakarta 'closures' are much like Smalltalk blocks, yet not quite. Any thoughts on whether Java's anon classes will match up with...
1
by: Martin_Hurst | last post by:
Is it possible to establish a connection from within a postgres database to another external database on the network, i.e., not a java or scripting connection, BUT by some type of table definition...
3
by: Peter Darley | last post by:
Folks, I have a couple of databases that should really be schemas in the same database. I tried to find suggestions on how to easily move all the tables/sequences/etc. from the public schema in a...
5
by: trynittee | last post by:
Hello, It's been a while since I've posted. I am an intermediate user of Access. I can read simple VB code, have done complex queries, comfortable with event procedures, designing forms and...
1
by: atl10spro | last post by:
Hello Everyone, I am new to MS Access and although I have created several different databases I lack the VB knowledge to code a search function. I am turning to your expertise for assistance. ...
2
by: Steve Richter | last post by:
what is the best way to use DataGridView to view data from large database tables? Where the sql select statement might return millions of rows? string connectionString =...
2
by: psbasha | last post by:
Hi, Is anybody tried using JAVA interface as front end and Python modules in the back end?. If so ,how to integrate the JAVA code with Python modules? How JAVA and Jython are...
8
beacon
by: beacon | last post by:
Hi everybody, I have a front-end database with a login form. When a user opens the database the login form loads at startup. When the user has entered his/her ID and password correctly, I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.