R
Ryan Stewart
Someone posted something about this a while back in one of the
comp.lang.java groups, but I can't find it now. I want to create an object
model backed by a database. Where should the database code go? Should I have
a commit() method in each class, or something like that? That doesn't seem
right. I found some info about JDO (Java Data Objects), but after about half
an hour of browsing, it doesn't seem to be quite what I'm looking for. I may
be wrong though.
What it's for: Soon I intend to begin writing an application which is
primarily for learning purposes, though some use may come of it later on. It
will probably be a webapp using JSP, but there's a very slight possibility
that I'll use applets as an interface instead. I'm doing this at home
entirely on my own. I also intend to look into Struts for the first time.
Will it help with my database code issue?
My reason for asking: I've been involved with webapps where all the code,
including db code, was crammed into a JSP. Talk about *ugly*. I want to
learn the correct way to write a solid, maintainable application
comp.lang.java groups, but I can't find it now. I want to create an object
model backed by a database. Where should the database code go? Should I have
a commit() method in each class, or something like that? That doesn't seem
right. I found some info about JDO (Java Data Objects), but after about half
an hour of browsing, it doesn't seem to be quite what I'm looking for. I may
be wrong though.
What it's for: Soon I intend to begin writing an application which is
primarily for learning purposes, though some use may come of it later on. It
will probably be a webapp using JSP, but there's a very slight possibility
that I'll use applets as an interface instead. I'm doing this at home
entirely on my own. I also intend to look into Struts for the first time.
Will it help with my database code issue?
My reason for asking: I've been involved with webapps where all the code,
including db code, was crammed into a JSP. Talk about *ugly*. I want to
learn the correct way to write a solid, maintainable application