Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm starting some new code aiming Mysql and Oracle, plus H2 for in memory testing. This code has then to be deployed on our customer's sites.
Since it'll evolve over time, I'm planning to use flywaydb.org java migration, however I haven't found any java/jvm library allowing me to declare/alter tables and query/insert them through typesafe code for the required DBs.
Any hint of a library doing so?
My investigation so far:
Hibernate doesn't support migration & programmatic creation/alter of
table (just startup time create/update options, which are way less
powerful)
querydsl doesn't support table creation/alter
typesafe's slick required paid support for oracle
I would have to have to fallback to plain old SQL written 3 times...
best
Turns out http://www.jooq.org/ does it, jooq's motto being to provide all SQL functionalities in Java through a DSL and in a cross database way. Really sweet :)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 days ago.
Improve this question
Its been a while since I used Java and persistence, but it was a great way to manage tables, queries, and objects.
I have an application that doesn't call for a full-blown database server (I want to share a database file on a cloud service like Google Drive with a few users, one of which will be doing most of the database updates) so I settled on SQLite.
I started with persistence (because that's what I remember) and immediately fell down a rabbit hole trying to get it to work with modern Java. I tried ormlite, but even their examples don't work out of the box. I don't mind fooling with them to get them to work, but I have to believe there is a modern database interface (like persistence or what ormlite appears to do) that works with Java, is current, and has some working examples.
Everything I find seems to be many years old :-(
Any suggestions?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have a big code written in JSP and ADF which is related to a big database.
The client wants to make a report generator for him, So he can create reports with the columns he wants..
What's the best choice of an open source Library I can use ?
Oracle Apex' Interactive Reports offer quite a lot for end users - your (I mean, developer's) query might look likeselect * from ..., and end user can then select columns he wants, group them, perform filters, aggregates, draw charts ... Really nice. Best of all: it is Oracle, and it is free.
Printing, though, isn't that simple, but - from my experience, users (for some reason) adore Excel. Regarding the fact that you can easily download report into Excel, that might suit their needs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Is there a tool for managing changes of OrientDB schemas?
I am familiar with Flyway, but it has no support for OrientDB, so it will be great if there is something similar you could recommend.
My requirements are below:
Written in Java
Can use native OrientDB API to execute queries (not only JDBC)
Can use Java based migrations (not only queries)
See this related feature request already added to the Flyway 5.2.0 milestone, but no ETA announced.
We're currently investigating contributing to this, as we'll need that exact feature.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking to make a Java based application that also uses an external MySQL database. Does anyone know of some good resources that I could read up on? I am very interested to give this a shot!
Thanks in advance!
The standard API to use databases from Java is JDBC. See the JDBC Tutorial to learn how to use it.
You'll need a JDBC driver to connect to MySQL. You can get that at the MySQL website: Connector/J download.
MySQL provides a JDBC driver, so you can use pretty much any Java database tutorial to learn how to do it.
You can also use all of the usual candidates for mapping DB resources to Java objects (Hibernate, EclipseLink, ...).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm trying to understand how Hibernate works under the hood, how it manages lazy loading, transactions, data mappers, unit of work, identity maps, etc.
I wrote a small object model, and I downloaded Hibernate source code for debugging it.
I'm kind of lost, is this the best approach? Does documentation on these issues exist out there (web) ?
Any suggestions will be greatly appreciated.
Try the excellent book : Hibernate in Action, also debugging through the source is helpful but (I speak from experience of nhibernate only) understanding the principles before the implementation may be a better approach.
Hibernate in Action is old what you need is the 2nd edition Java Persistence in Action. This does a great job at going into the exotic cases and dealing with legacy db amongst other things but before you go spending money you should really look at this doc there you will see the reference docs as well as the FAQ, Common Problems, Advanced Problems plus you will see the annotations references which you will need if you are not using xml for your configuration.