where to place persistence.xml in Maven 3 project

Ads

 
 

Share on Google+Share on Google+

Java Coder
where to place persistence.xml in Maven 3 project
1 Answer(s)      3 years and 9 months ago
Posted in : Java Interview Questions

Hi,

The persistence xml should be places in the meta inf folder in maven based project. But I don't know what is the correct directory structure?

Please help me!!

Thanks

Ads
View Answers

November 25, 2013 at 4:39 PM


Hi,

You should place this in src\main\resources\META-INF folder.

Read more JPA tutorials.

Thanks


Ads









Related Tutorials/Questions & Answers:
where to place persistence.xml in Maven 3 project
where to place persistence.xml in Maven 3 project  Hi, The persistence xml should be places in the meta inf folder in maven based project. But I...; Hi, You should place this in src\main\resources\META-INF folder. Read
where to place persistence.xml in Maven 3 project
where to place persistence.xml in Maven 3 project  Hi, The persistence xml should be places in the meta inf folder in maven based project. But I...; Hi, You should place this in src\main\resources\META-INF folder. Read
Advertisements
JavaScript where to place in HTML
JavaScript where to place in HTML   Where to place JavaScript code into HTML Code?   Placing JavaScript code into HTML Code In HTML, JavaScript can be declared anywhere either in <Head>? or <Body>? Tag
persistence.xml for MySQL
persistence.xml for MySQL  Hi, Can anyone share me the example of persistence.xml for MySQL database? Thanks   Hi, Here is the code for MySQL: <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi
redirecting a login authenticated form to a form to be displayed on the same page from where the login authentication has taken place.
page from where the login authentication has taken place.  I am...=st.executeQuery("select * from login where username='"+user+"' and password='"+pass+"'"); int...(); ResultSet rs=st.executeQuery("select * from login where username='"+user
Hibernate persistence.xml
In this section, you will learn how to configure persistence.xml and what is its need
Maven 3 Tutorial
Maven 3 Tutorial - Learn Maven 3 Project Management tool In this section we are giving tutorials on the Maven 3 project management tool. Maven is famous... Hello World project with Maven 3 Building web application with Maven
Tell me where we are using overloading and overriding in realtime project?
Tell me where we are using overloading and overriding in realtime project?  Hi,Tell me where we are using overloading and overriding in realtime project? please give me answer
Best Eclipse plugin for Maven 3
Best Eclipse plugin for Maven 3  Hi, I am trying to use the Eclipse... want to use the Maven 3 in the Eclipse. Can anyone tell me the best Eclipse plugin for Maven 3? Thanks   Hi, The best plugin is Maven Integration (m2e
Downloading and installing Maven 3 - Tutorial of Maven 3 explaining the steps to download and configure Maven 3
Downloading and installing Maven 3 In this tutorial I will teach you how you can download, unzip, install and configure Maven 3 on your windows computer. We are using windows 7 for installing and configuring the Maven 3 project
Information about Connaught Place Delhi
Connaught Place of Delhi The Connaught Place is a valuable commercial centre in Delhi. This is a massive shopping centre in Connaught Place Delhi... in Delhi that has evolved over the years to where it features many different types
Convert Maven project to Eclipse Web Project
Step by Step process of converting a maven web project into Eclipse Web... an existing maven based web application project to Eclipse web project so that it can... much easier. To convert the existing maven project into Eclipse Web project
Project
the same questions in online examination system project in Java Server Pages..., Either you can make 3 different tables consisting of different questions. Set the values 1, 2, 3 for 3 tables and find random so that students will get
Project
Project  Hi, Am starting a new project to draw a 2d graph using java swing and opengl,where in the input for X-axis and Y-axis co=ordinates should be accepted from user... As am very new to this am seeking help so pls help
place reservation in plane
place reservation in plane   hi,how can i write a program in Java programming to place reservation in air plane from the menu let the user to inter his/her name, age, date of traveling, and the seat in the plane
Inserting id in place of name to database
Inserting id in place of name to database  Hello, I have a database department where I have "id" and "name". I am fetching this data to a jsp form... this form to another table and in place of "name" of department I wanted to insert
Project
(receipt dt,'dd/mm/yyyy') from proj master "; qry+=" where project...Project  &lt;% String project no=request.getParameter("project no"); String qry="select stud name,project name,project type,project
Project
proj</em>master "; qry+=" where project<em>no='"+project</em>...=(String) vdata.get(1); String project_name=(String) vdata.get(2); String project_type=(String) vdata.get(3); String receipt_no=(String) vdata.get(4); String
3
Spring 3
Spring 3  Hi I want to know how to write code Spring 3 for registration and login pages with help of data bse.Please help me I am new to Spring
to use ArrayList in the place of Vector
to use ArrayList in the place of Vector  public Enumeration getInterfaces() { ISCMetaType currentType = this; ArrayList allInterfaces = new ArrayList(); while( currentType != null
to use ArrayList in the place of Vector
to use ArrayList in the place of Vector  public Enumeration getInterfaces() { ISCMetaType currentType = this; ArrayList allInterfaces = new ArrayList(); while( currentType != null
project
in the correct place   The given code calculates the employees gross monthly
project
accounting into the system, for which you will need 3 additional fields..., for which you will need 3 additional fields, No. of Working Days a Contract Employee
Features of Maven 3
in maven 3 allows easy download and quick build of project and hence makes it worth... Project Dependencies and Plugin Dependencies in Maven 3, it is quite different from..., in Maven 3 you can retrieve your own project dependencies from the declared
Project
Project  what is the code of the "sign up" form where user have to enter name,user id,password,confirm password,phone no?After entering data user go to another page.   1)form.jsp: <html> <h2>Sign Up Form<
project
project  i need a project in java backend sql
PROJECT
PROJECT  i want online polling system project codding
project
project  suggest a network security project based on core java with explanation
project
project  sir i want a java major project in railway reservation plz help me and give a project source code with entire validation thank you
project
project  does hostel management system project contain any dynamic web pages