Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know which framework is used?

I have been made to involve recently in a new project and I am completely unaware of which framework is used.After a long time I came to know spring is used because I saw some imports like

import org.springframework.beans.factory.annotation.Configurable; 

and I am sure spring is used.Now I am completely unaware of whether hibernate is used or jpa is used.When I asked my colleague then some are telling jpa is used and some are telling hibernate that means they are also confused.Can any body please throw some light regarding this.How would I know jpa or hibernate is used.

which packages should be imported specifically for jpa or hibernate.Any hint please

like image 514
rocking Avatar asked Apr 14 '14 08:04

rocking


People also ask

How do you know which CMS is used in a website?

You can see which CMS is used on the website by checking its footer: a small font at the very bottom under contact information or extra corporate information. It is not always the case that the name of the CMS system is removed from the footer of a template website design.

What frontend framework does a website use?

Backbone.JS It is a popular, most used frontend framework for creating small, single-page web apps. It keeps the app logic and UI separated, making it easy for developers. It can also be used for bigger projects that demand better design with less coding.

How do I find the frontend of a website?

use google chrome and open the website, right click and find inspect then navigate to sources. there you can find every one of the files in the website.


2 Answers

What is probably going on, is that the project is using Hibernate as an implemention of JPA.

To check and see is JPA is used, check the code and see whether or not you can find EntityManager or EntityManagerFactory

One way to see if Hibernate is being used, is to check the Spring configuration and see whether or not HibernateJpaVendorAdapter is used anywhere

In case you are have a persistence.xml file, HibernateJpaVendorAdapter shouldn't be present anywhere, and you can check if hibernate is mentioned anywhere in the file

like image 90
geoand Avatar answered Sep 22 '22 01:09

geoand


Check out your project for pom.xml. This is configuration file for Maven, which handles dependencies (and how your project is build). With IDE or even with command line, you can display all used dependencies and frameworks.

like image 44
Kojotak Avatar answered Sep 22 '22 01:09

Kojotak