About choosing object relational mapping framework in Java [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am currently creating a some DAO in Java. But the application is not very large, so I am not consider to use hibernate or JPA. What light-weight framework can I use??
Thank :D

Neither Hibernate nor JPA would be what I would call "lightweight".
I'd recommend Spring JDBC template or iBatis. Or just straight JDBC. How hard can it be?
If you don't have a solid object model, no ORM solution will help you. The "O" stands for "object".
If you know SQL well and want to think in terms of relations, I'd say that ORM is a bad choice.

Take a look at ormLite. It's intended to be a lightweight ORM tool, but if I'm completely honest, I'd take duffymo's advice an just go Spring JDBC.

The lightest solution - in terms of setup - would be Eclipselink (which is a JPA implementation). Using Hibernate would yield identical code (because it is a JPA implementation too), but would require more dependencies.
To use Eclipselink you just need three jars in your classpath and a very short configuration file (META-INF/persistence.xml). The simplest way to see which jars exactly would be to use Netbeans and add them using libraries->add->eclipselink (jpa 2.1).
No matter which solution you choose you also need a relevant JDBC driver.
If you are a beginner, a JPA library (like Eclipselink or Hibernate JPA) is a good choice because:
your IDE will probably have some tooling to help you with persistence.xml and mapping;
it is a very popular standard and programmers generally agree that it's good;
it let's you do simple things very easily; bootstrapping is one line of code, configuring a simple class can be done in just two annotations;
it let's you grow: when you want to use Java EE stack one day, it will be good to know JPA.

Related

Java Framework for RDF version tracking [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a java framework for handling RDF data in a graph database. The main purpose is to manage several versions of a RDF graph and all versions must be accessible all the time. So version tracking is an important feature I need. Is there any tool that supports this out of the box without to develop it from scratch?
The only tool I found related to this topic is OpenAnzo, but the website is no longer available.
To add a timestamp to the nodes should not be the problem, but also an easy access via SPARQL or another query language should be possible.
You might be interested in the Alibaba Auditing Repository and Auditing SAIL, which are Sesame extensions for RDF data change tracking and provenance (disclosure: I'm on the Sesame development team).
I don't know of any existing database solutions which provide versioning out of the box. Your best bet is to work on a custom scheme for your application over an existing database. For example, you could put different versions of the data into named graphs and use those as the versioning structure, then using from/from named in your query be able to query some or all different versions of your data. You could also try and works something up with reification which would give similar results.

I am looking for java web framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I don't know if I should continue the other post of mine because this is a different question. But the questions are related.
I am looking for web java framework that:
1. will be MVC framework.
2. will be well documented.
3. will allow me use javascript of my own without using the framework modules.
4. will support feature like masterpage in asp.net.
5. will have the ability to create predefined components and use them wherever I need.
Is there something like this?
I appriciate very much examples for those features.
Judging by the tags you chose, it all points to:
Spring Web MVC framework
In my opinion it also satisfies your 5 requirements.
I would recommend using Spring Roo to generate your first project. Roo projects use the technologies that Ralph recommends:
JSPX, with some preconfigured tagx files
Tiles as templating framework
Roo will also setup Hibernate with Mysql, which are the technologies you mentioned in your other post
I can't speak to #4, because I don't know masterpage, but Spring MVC satisfies the other four requirements. I'd recommend it highly.
Be warned that Spring has an MVC framework, but it's much, much more. It's a three-legged stool:
Dependency injection and IoC
Aspect oriented programming AOP
Modules like MVC, persistence with JDBC and ORM, messaging, remoting, security, etc.
I would recommend this setup:
Spring (Spring Core and Spring MVC),
Tiles,
JSPX (the X markes the spot)
Tiles for "support feature like masterpage in asp.net."
JSPX, because you can easyly write Tagx files to define your predefined components.

Is there a Eclipse plugin for Spring JDBCTemplate code generation? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am planing to use Spring JDBCTemplate for all my database needs. I wanted to know if there is a Eclipse plugin which will take a data base table and auto generate -
The domain model POJOs
DAO Classes
I know such a tool already exists for hibernate(http://www.hibernate.org/subprojects/tools.html). Is there a similar plugin which will help me auto generate Spring JDBCTemplate classes?
The Telosys Tools Eclipse plugin is designed for this kind of job.
You can generate your Java (POJO) classes from the database with the basic templates
and you can also create your own template (a Velocity file) to generate your DAO classes
See http://www.telosys.org/
The Telosys Tools its powerful, when your choice is jdbcTemplate not ORM, you write your code for CRUD Operation per Model. If your have a lot of Model you have a lot of code for do the same things that's you need Code Gen.
I did a lot of research around this and now i know that there is no Eclipse plugin for my purpose.
QueryDSL has good support for JDBC and generates Entities for you automatically, however: I don't know how that would go together with JdbcTemplate, as QueryDSL "wants" to use its own object query "language" (Java-based).
It also integrates nicely with Eclipse.

What is the best api/library for Java to use Cassandra? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for an API with the following requirements
It's simple to use and is concise. It is not bloated.
Works with Spring way of doing things, or is at least easy to make it work with Spring
Has a Maven repository, preferably it's already in the main repositories
Is production-tested, meaning a fair number of people are using it in production applications.
Help? Thanks!
Hector and Pelops are, as far as I know, the two that are most widely used (4). I dont think any of the two are mavenized (3). Both should work in a Spring framework environment(2). Your first criteria might be a little bit subjective. I dont find any of these two bloated. You might do, if you do, please tell me.
i know this is an old question but I'd like to point future viewer of the question to Astyanax. It's a very well documented Cassandra API with many examples and support very high level features such as locking and all versions of cql. Astyanax is also Mavenized.
Kundera is a object-datastore mapping tool for Cassandra, Hbase and MongoDB.
Some of the salient features are:
JPA 2.0 compliant.
Column/ super column indexing using lucene.
Support for entity relationships and JPA queries.
Cross-datastore persistence
It's hosted here:
https://github.com/impetus-opensource/Kundera

UML reverse engineering tools for Eclipse or Maven [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
do you know any good reverse engineering tool that creates UML diagrams from Java code and Hibernate mappings across multiple projects, in Eclipse or Maven (not in the Javadoc)?
Thanks
Visual Paradigm creates recursively class diagramms from a source tree (navigatable) multiple projects are handled by adding muliple sources.
Db reengineering isn't that strong on large db schemas.
I doubt that Paradigm has support for hibernate mappings.
It sounds little bit like you're trying to catch up design after things get complicated ;-)
Try also Eclipse MoDisco, although it has no support for Hibernate as far as I know, but it allows extensible reverse engineering and is built on top of the EMF project.
Hibernate is possible just type "jpa annotation uml" into google and select one of the tool.
Standard Java without annotation is supported by almost all UML tools such RSA, MAgicDraw, eUML, Omondo etc...

Categories

Resources