T
T
theco6ak2015-10-19 22:19:07
Java
theco6ak, 2015-10-19 22:19:07

Organizing the structure of a java + mongo application?

I am writing a small applet on SE. As a data store, the choice fell on mongodb (I have not encountered NoSQL before, but mongo is popular).
Actually, I have no experience in developing a competent package / class architecture > _ <
I would like advice from experienced people.
Given:
in addition to packages with entities, bins and enums, there is Utils, in which I store all sorts of static data and converters that are useful for the work of the applet. There is also a services package with one class that stores AppSerivce with skeletons of methods for reading / writing data ... but where and how to organize a database connection in mongo ?! like static objects in a service class?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-10-19
@theco6ak

registry template.
ps Why do you need Monga then?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question