The best way to understand Hibernate internals [closed] - java

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.

Related

cross DBs programmatic tables creation/alter? [closed]

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 :)

Seeking Code Generator for Spring Web Application [closed]

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 years ago.
Improve this question
I have been vetting the process of Code Generators online. I started my search with a promising but not popular Eclipse plugin called FastCode (http://www.3pintech.com/products/fast-code/).
It had a higher learning curve with a tradeoff for flexibility. That was find for me because a lot of our application follows a certain standard that I would need to maintain with the generated code. Unfortunately it was very buggy and I think it may be a dead project.
On to SpringFuse. This looked promising, but I have a few problem with it.
1) We are far into our project development lifecycle and I only need to use it for a subset of new tables in our MYSql database. Springfuse seems to take a "let us generate your entire application" approach.
2) We don't use Hibernate and SpringFuse seems to be tied into this
3) It doesn't seem to be that configurable
What I would like to do is start with a database table, and from there generate a corresponding POJO, DAO for CRUD operations, Service Layer to call the DAO and a Unit test for testing each layer. We have a standard pattern for creating our DAO layer that I will be using.
I am considering using Perl or maybe another templating system to do this but that will involve a significant amount of coding on my part. I was wondering if the SO community knows of any good technologies to use here.
I actually think an online sevice would be awesome here, something like the awesome JSON2POJO, but I don't think it exists.
After some research, the solution that worked best for me was to use the FreeMarker Java Template Engine and write my own code generation system. Using regular expressions to parse our database file and converting some of our existing code into FreeMarker templates only took a couple of days and yielded a system that is going to save us a lot of time.
I recommend this approach to users who are in a similar spot for highly customized Enterprise Applications. Most of the rendered code is not fit for primetime, but the base boilerplate code I'm generating results in huge time-savings.
FreeMarker's templating system is very similar to other technologies like JSTL and it throws very descriptive error messages so designing the templates was very simple.

Circuit Diagram visualization framework for Java [closed]

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 am looking for a framework to visualize Circuit Diagrams in Java application.
I have to show Diagrams like that:
For one of my previous projects (in 2008 year) I used Jung. It worked well, but maybe somebody could propose more suitable for my needs framework? Does anyone have a similar task or know a good tools?
Also one of my tasks is to try to layout elements, because there is only info about connections in DB, but there is no layout information. I want to try to minimize manual layout work and looking for layout algorithms.
Thank you in advance.
PS: It is very desirable that the framework will be free.
PPS: Also I am interested in frameworks which can help to show (and edit) such type of diagrams using web browser.
Prefuse is very similar to Jung. I haven't used it extensively but I evaluated both Jung and Prefuse for our graph application.
Another web based option is Protovis which I came across during my evaluation. You can draw interactive graphs with it but I suspect you might need layout information already available to use this tool. Anyway looks like the authors are moving to a new library named D3 so you can check that out.
Another option I see is graphviz.
Here is a big list of graph visualization tools. http://www.mkbergman.com/414/large-scale-rdf-graph-visualization-tools/
I found a java framework named circuit. I think it could help you fix your issue.
http://code.google.com/p/circuit-framework/

Java Opensource E-Commerce solution [closed]

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 believe there are a lot of similar questions even on stackoverflow. But most of them are dated 1-2 years ago. Sorry about same question again.
Could you suggest easy to run and tweak java based opensource E-Commerce solution. Before i used Magento, but it was really hard to change code at start. I spend almost 2 week to realize how Magento works. Performance was not good enough too.
Now i'm looking for simple java solution, which can be customized or rewritten easy.
I'm on the hunt for more or less the same.
Up until now, KonaKart has been my prime candidate. But their entire stack isn't opensource, this is limited to (snippet from http://www.konakart.com/product/customization):
The parts of KonaKart that customers are most likely to want to customize are all open >source. These include the Struts action classes and forms, the JSPs, the velocity templates, >the BIRT reports, the payment modules, order total modules, shipping modules and the GWT One >Page Checkout code. They are shipped under the GNU Lesser General Public License
An alternative is http://www.shopizer.com/ which offer the entire codebase under the LGPL license.
Since I'm purely in the very early stages of spotting a suitable system, I can't say much about performance of either system.

Open source CMS in stripes? [closed]

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
Is there any existing open source CMS in stripes?
I'm especially looking for a very tiny and lightweight one that I can take a look at and learn from.
Unfortunately, I've been unable to find a lightweight CMS in any language.
Java has the JSR 170 Java Content Repository specification, with Jackrabbit being the reference impelementation. Unfortunately, my experience has been that it is neither lightweight nor easy to learn from.
You might try looking at some of the version control systems and filesystems though: their functionality is overlapping and may resemble yours.
Have a look to http://wiki.opensymphony.com/display/ABLE/Home, it use Stripes and other tools.
Is not a pure CMS but a framework for building CRUD applications and auto-generating controllers and scaffolding.
Unless you really have to learn something a little more modern. Stripes is just a better Struts which isnt much. Both are dated and do next to nothing in terms of building something snazzy.

Categories