Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
In our java project, We decided to use ORM object/relational mapping technique in objects' persisting.
But we hesitate to use a specific framework to do this.So, what is the best framework for java can do this task?
Hibernate is an excellent choice.
As Chris says, Hibernate is an excellent choice.
A (not-exhaustive) list can be found on wikipedia
Hibernate is a superset of JPA. If you stay within the bounds of the JPA, then you can theoretically switch to a differenct JPA implementation at a later point...
As toolkit said about what Chris says, Hibernate is the choice.
:D :D :D :D
Hibernate of course, but if you seek standardizations, then JPA or JDO
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
as i know for Querying from Persistence we have below options
Criteria Query
QueryDsl e.t.c.
i am using queryDSL
so is that good approach? or any other library that i can use
Criteria API is a bit tricky/complicated compared to Query DSL. So, I prefer Query DSL.
Reasons:
Type safety is the core principle of Querydsl and one of the best reasons to prefer it.
Compact implementation.
More like JPQL syntax.
Refer to the Query DSL advantages doc for details.
QueryDSL is
more similar to SQL so it might be easier to learn for people who have not touched Criteria before.
more compact
more type-safety
closer to JPQL syntax
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I am a fresh Spring Boot developer coming from a Django background. I like what i see so far but I've been searching for a way to auto-generate CRUD UI from my Entities similar to how Django admin does it out of the box. I'm not averse to solutions that require a little tinkering.
Spring Boot does not provide you that kind of feature but there are some additional tools that can easily do it for you - the most popular is jHipster
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I mean wizards such as JPA Tools in Eclipse which can help me generate tables from entities or entities from tables.
Or is it best practice to do everything manually?
These types of wizards are incredibly useful, but they rarely get everything 100% correct. I suggest using them to create the initial schema but then do any fine tuning yourself and check the result carefully.
Often the quality of the schema created depends greatly on the detail that you supply in your annotations. The better the annotations the more likely your schema is generated correctly (for example make sure you specify the length attribute against String columns to ensure they are sized correctly in the database).
Generating table from entities is ok. If you have to do it the other way around (generating entities from table), it's best to do it manually.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm creating rest service for mobile app in java. For storage process which is best suitable for real time storage (Hibernate , JPA & JDBC).
Your valuable answers will put me on right track.
Basically ORM technologies like Hibernate, JPA etc., provides greater flexibility to the programmer in maintaining the code say for example, direct mapping to java POJO's, object locking mechanisms, Id generation and lot more with little cost of performance. If your application needs light weight calls (taking into consideration of concurrency, ofcourse underling database will provide, small relation etc) you could opt JDBC.
Thanks,
JK
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Hey I am new to java and wondering where to learn about JDBC, any help is appreciated. I have looked at oracles documentation but am still having difficulty with getting even a simple database to run. Thanks in advance.
At least two sites just for jdbc tutorials :)
http://www.jdbc-tutorial.com/
http://www.jdbctutorial.net/
Similar post on SO
Java and SQLite
JDBC Video Tutorials
General JDBC Setup
Wiki book
http://en.wikibooks.org/wiki/Java_JDBC_using_SQLite
I used the JDBC trail when I need to write an ETL program and it helped me out quite a bit. That and the Javadocs API's.
I too had the same problem and used http://www.zentus.com/sqlitejdbc/. This helped me a lot. I was wondering what you were planning on using the database for. That would help me give you a better recommendation. However for your purposes, you may be better off with serialization.