Tuesday, May 20, 2014

Hibernate – One-To-Many Example


1. “One-to-many” example

This is a one-to-many relationship table design, a STOCK table has many occurrences STOCK_DAILY_RECORD table.
one to many table relationship
See MySQL table scripts
DROP TABLE IF EXISTS `stock`;
CREATE TABLE `stock` (
  `STOCK_ID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `STOCK_CODE` VARCHAR(10) NOT NULL,
  `STOCK_NAME` VARCHAR(20) NOT NULL,
  PRIMARY KEY (`STOCK_ID`) USING BTREE,
  UNIQUE KEY `UNI_STOCK_NAME` (`STOCK_NAME`),
  UNIQUE KEY `UNI_STOCK_ID` (`STOCK_CODE`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8;
 
 
DROP TABLE IF EXISTS `mkyongdb`.`stock_daily_record`;
CREATE TABLE  `mkyongdb`.`stock_daily_record` (
  `RECORD_ID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `PRICE_OPEN` FLOAT(6,2) DEFAULT NULL,
  `PRICE_CLOSE` FLOAT(6,2) DEFAULT NULL,
  `PRICE_CHANGE` FLOAT(6,2) DEFAULT NULL,
  `VOLUME` BIGINT(20) UNSIGNED DEFAULT NULL,
  `DATE` DATE NOT NULL,
  `STOCK_ID` INT(10) UNSIGNED NOT NULL,
  PRIMARY KEY (`RECORD_ID`) USING BTREE,
  UNIQUE KEY `UNI_STOCK_DAILY_DATE` (`DATE`),
  KEY `FK_STOCK_TRANSACTION_STOCK_ID` (`STOCK_ID`),
  CONSTRAINT `FK_STOCK_TRANSACTION_STOCK_ID` FOREIGN KEY (`STOCK_ID`) 
  REFERENCES `stock` (`STOCK_ID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
2. create model classes to map for tables

we already have a Stock.java class which was made under package package com.mkyong.common;
 first let's rename it to package com.mkyong.stock;
 so we have better packaging structure
 you have to do few modifications to support the one to many relationship
 
 or else you can make new Stock.java in new package
 
 
 ---------
 
 package com.mkyong.stock;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "stock", catalog = "mkyong", uniqueConstraints = {
@UniqueConstraint(columnNames = "STOCK_NAME"),
@UniqueConstraint(columnNames = "STOCK_CODE") })
public class Stock implements Serializable {

/**
*/
private static final long serialVersionUID = 7029806795746254329L;
private Integer stockId;
private String stockCode;
private String stockName;

public Stock() {

}

public Stock(String stockCode, String stockName) {
this.stockCode = stockCode;
this.stockName = stockName;
}

@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "STOCK_ID", unique = true, nullable = false)
public Integer getStockId() {
return stockId;
}

public void setStockId(Integer stockId) {
this.stockId = stockId;
}

@Column(name = "STOCK_CODE", unique = true, nullable = false, length = 10)
public String getStockCode() {
return stockCode;
}

public void setStockCode(String stockCode) {
this.stockCode = stockCode;
}

@Column(name = "STOCK_NAME", unique = true, nullable = false, length = 20)
public String getStockName() {
return stockName;
}

public void setStockName(String stockName) {
this.stockName = stockName;
}
}


-----------------------------------

for StockDailyRecord  create another java class






Errors
----------

1. AppOneToMany.java stockDailyRecords.setStock(stock);  was giving error, mapping to wrong Stock.java
previously on common package.
Reason : StockDailyRecord.java , I have imported import com.mkyong.common.Stock;
so the setter was mapped to com.mkyong.common.Stock;

2. Error in running application 
------------------------------

Hibernate one to many (Annotation)
May 20, 2014 4:11:34 PM org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
May 20, 2014 4:11:34 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.4.Final}
May 20, 2014 4:11:34 PM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
May 20, 2014 4:11:34 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
May 20, 2014 4:11:34 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
May 20, 2014 4:11:34 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
May 20, 2014 4:11:34 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
May 20, 2014 4:11:34 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
Initial SessionFactory creation failed.org.hibernate.AnnotationException: Use of the same entity name twice: Stock
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:20)
at com.mkyong.util.HibernateUtil.(HibernateUtil.java:8)
at com.mkyong.AppOneToMany.main(AppOneToMany.java:15)
Caused by: org.hibernate.AnnotationException: Use of the same entity name twice: Stock
at org.hibernate.cfg.annotations.EntityBinder.bindEntity(EntityBinder.java:402)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:586)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3435)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3389)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1341)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1731)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1782)
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:16)
... 2 more
Caused by: org.hibernate.DuplicateMappingException: duplicate import: Stock refers to both com.mkyong.stock.Stock and com.mkyong.common.Stock (try using auto-import="false")
at org.hibernate.cfg.Configuration$MappingsImpl.addImport(Configuration.java:2582)
at org.hibernate.cfg.annotations.EntityBinder.bindEntity(EntityBinder.java:395)
... 9 more

-------------------
Reason : I have included two entries in the "hibernate.cfg.xml"
  
 
 
  
  If you can see above , I have two entries for Stock.java   and
  
  Error itself gives asuggestion to 
  duplicate import: Stock refers to both com.mkyong.stock.Stock and com.mkyong.common.Stock (try using auto-import="false")
  
  solution 1 :First i try with removing one record, 
  execute
  
  ------------------ i still hvae an error--------------
  
  Hibernate one to many (Annotation)
May 20, 2014 4:18:52 PM org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
May 20, 2014 4:18:52 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.4.Final}
May 20, 2014 4:18:52 PM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
May 20, 2014 4:18:52 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
May 20, 2014 4:18:52 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
May 20, 2014 4:18:52 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
May 20, 2014 4:18:52 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
May 20, 2014 4:18:52 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
Initial SessionFactory creation failed.org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.mkyong.stock.Stock.stockDailyRecords[com.mkyong.stock.StockDailyRecord]
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:20)
at com.mkyong.util.HibernateUtil.(HibernateUtil.java:8)
at com.mkyong.AppOneToMany.main(AppOneToMany.java:15)
Caused by: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.mkyong.stock.Stock.stockDailyRecords[com.mkyong.stock.StockDailyRecord]
at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:1204)
at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:735)
at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:670)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:66)
at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1591)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1366)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1731)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1782)
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:16)
... 2 more

-----------------------
Reason to happen this error
http://stackoverflow.com/questions/4956855/hibernate-problem-use-of-onetomany-or-manytomany-targeting-an-unmapped-clas
Your annotations look fine. Here are the things to check:

make sure the annotation is javax.persistence.Entity, and not org.hibernate.annotations.Entity. The former makes the entity detectable. The latter is just an addition.

if you are manually listing your entities (in persistence.xml, in hibernate.cfg.xml, or when configuring your session factory), then make sure you have also listed the ScopeTopic entity

make sure you don't have multiple ScopeTopic classes in different packages, and you've imported the wrong one.


So I deleted all the classes Stock.java which was previously put inside to com.mkyong.common; package
I have been using it's references and I deleted all the references from App2.java and StockDetail.java classes

and it's runs fine
----------------

output will be 

---------------

Hibernate: insert into mkyong.stock (STOCK_CODE, STOCK_NAME) values (?, ?)
Hibernate: insert into mkyong.stock_daily_record (DATE, PRICE_CHANGE, PRICE_CLOSE, PRICE_OPEN, STOCK_ID, VOLUME) values (?, ?, ?, ?, ?, ?)
Done

-----------

if you need full detail output

-------------------------------------------------------------

Hibernate one to many (Annotation)
May 20, 2014 4:55:34 PM org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
May 20, 2014 4:55:34 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.4.Final}
May 20, 2014 4:55:34 PM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
May 20, 2014 4:55:34 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
May 20, 2014 4:55:34 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
May 20, 2014 4:55:34 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
May 20, 2014 4:55:34 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
May 20, 2014 4:55:34 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
May 20, 2014 4:55:35 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)
May 20, 2014 4:55:35 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20
May 20, 2014 4:55:35 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000006: Autocommit mode: false
May 20, 2014 4:55:35 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/mkyong]
May 20, 2014 4:55:35 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000046: Connection properties: {user=root, password=****}
May 20, 2014 4:55:35 PM org.hibernate.dialect.Dialect
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
May 20, 2014 4:55:35 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
May 20, 2014 4:55:35 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
May 20, 2014 4:55:35 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory
INFO: HHH000397: Using ASTQueryTranslatorFactory
Hibernate: insert into mkyong.stock (STOCK_CODE, STOCK_NAME) values (?, ?)
Hibernate: insert into mkyong.stock_daily_record (DATE, PRICE_CHANGE, PRICE_CLOSE, PRICE_OPEN, STOCK_ID, VOLUME) values (?, ?, ?, ?, ?, ?)
Done








------------------------------------------------











Ruannable vs Callable



"The Callable interface is similar to Runnable, in that both are designed for classes whose instances are potentially executed by another thread. A Runnable, however, does not return a result and cannot throw a checked exception."

RunnableCallable>
Introduced in Java 1.0Introduced in Java 1.5 as part of java.util.concurrent library
Runnable cannot be parametrized Callable is a parametrized type whose type parameter indicates the return type of its run method
Classes implementing Runnable needs to implement run() methodClasses implementing Callable needs to implement call() method
Runnable.run() returns no ValueCallable.call() returns a value of Type T
Can not throw Checked ExceptionsCan throw Checked Exceptions
public class RunnableTest implements Runnable {
              @Override
              public void run() {
                         //any processing
              }
}
import java.util.concurrent.Callable;


public class CallableTest implements Callable { 
          @Override 
           public String call() throws Exception { 
                      // any processing
                    return new String("I am Callable and can return value and throw checked exception"); 
              } 
}

Tuesday, May 13, 2014

hibernate.dialect

Dialect means "the variant of a language". 
Hibernate, as we know, is database agnostic. It can work with different databases. 
However, databases have proprietary extensions/native SQL variations, and set/sub-set of SQL standard implementations.
Therefore at some point hibernate has to use database specific SQL.
So Hibernate uses "dialect" configuration to know which database you are using so that it can switch to the database specific SQL generator code wherever/whenever necessary.


In simple

hibernate.dialect property helps Hibernate to generate the appropriate SQL statements for the chosen database.

List of Hibernate SQL Dialects
http://docs.jboss.org/hibernate/orm/4.2/javadocs/org/hibernate/dialect/package-summary.html


hibernate.cfg.xml

what is this. why we need this.
Hibernate needs to know "in Advance" the mapping details that defines how the java classes are related to database tables.
Hibernate needs to set configuration settings related to database and other related parameters.

The information will be given through a standard java property file called "hibernate.properties"  or the "hibernate.cfg.xml".

The file will reside inside the root directory of your application classpath.


basically this file may look like this

---------------------

"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">


  com.mysql.jdbc.Driver
  jdbc:mysql://localhost:3306/mkyong
  root
  root123
  org.hibernate.dialect.MySQLDialect
 
  true
 
 




let's see what these all about

S.N.Properties and Description
1hibernate.dialect 
This property makes Hibernate generate the appropriate SQL for the chosen database.
2hibernate.connection.driver_class 
The JDBC driver class.
3hibernate.connection.url 
The JDBC URL to the database instance.
4hibernate.connection.username 
The database username.
5hibernate.connection.password 
The database password.
6hibernate.connection.pool_size 
Limits the number of connections waiting in the Hibernate database connection pool.
7hibernate.connection.autocommit 
Allows autocommit mode to be used for the JDBC connection.

If you are using a database along with an application server and JNDI then you would have to configure the following properties:
S.N.Properties and Description
1hibernate.connection.datasource 
The JNDI name defined in the application server context you are using for the application.
2hibernate.jndi.class 
The InitialContext class for JNDI.
3hibernate.jndi. 
Passes any JNDI property you like to the JNDI InitialContext.
4hibernate.jndi.url 
Provides the URL for JNDI.
5hibernate.connection.username 
The database username.
6hibernate.connection.password 
The database password.

Monday, May 12, 2014

Create Hibernate Project with annotation hibernate + mysql

Create a maven project and build it to support the hibernate

1. create maven project

execute below command
you need to have maven in your system

mvn archetype:generate -DgroupId=com.mkyong -DartifactId=HibernateExample -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

eg:

C:\example\Tutorial\Hibernate>mvn archetype:generate -DgroupId=com.mkyong -DartifactId=HibernateExample -DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0/maven-archetype-quickstart-1.0.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0/maven-archetype-quickstart-1.0.jar (5 KB at 2.0 K
B/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0/maven-archetype-quickstart-1.0.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0/maven-archetype-quickstart-1.0.pom (703 B at 1.3
KB/sec)
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mkyong
[INFO] Parameter: packageName, Value: com.mkyong
[INFO] Parameter: package, Value: com.mkyong
[INFO] Parameter: artifactId, Value: HibernateExample
[INFO] Parameter: basedir, Value: C:\example\Tutorial\Hibernate
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: C:\example\Tutorial\Hibernate\HibernateExample
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.246s
[INFO] Finished at: Fri May 09 11:22:11 IST 2014
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
C:\example\Tutorial\Hibernate>


This will create simple maven project with 
/HibernateExample/src/main/java/com/mkyong/App.java 
/HibernateExample/src/test/java/com/mkyong/AppTest.java



---------  pom will have---
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4.0.0
  com.mkyong
  HibernateExample
  jar
  1.0-SNAPSHOT
  HibernateExample
  http://maven.apache.org
  
 
  
   
      junit
      junit
      3.8.1
      test
   
    
 
  


----------------
you can refer below also for with oracle
http://www.mkyong.com/hibernate/maven-3-hibernate-3-6-oracle-11g-example-xml-mapping/


we need to create table

let's create a table name with "Stock" . below will be sql

DROP TABLE IF EXISTS `stock`;
CREATE TABLE `stock` (
  `STOCK_ID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `STOCK_CODE` VARCHAR(10) NOT NULL,
  `STOCK_NAME` VARCHAR(20) NOT NULL,
  PRIMARY KEY (`STOCK_ID`) USING BTREE,
  UNIQUE KEY `UNI_STOCK_NAME` (`STOCK_NAME`),
  UNIQUE KEY `UNI_STOCK_ID` (`STOCK_CODE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;



2. then we need to create a java class to map table, hibernate mapping classs

package com.mkyong.common;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "stock", catalog = "mkyong", uniqueConstraints = {
@UniqueConstraint(columnNames = "STOCK_NAME"),
@UniqueConstraint(columnNames = "STOCK_CODE") })
public class Stock implements Serializable {

/**
*/
private static final long serialVersionUID = 7029806795746254329L;
private Integer stockId;
private String stockCode;
private String stockName;

public Stock() {

}

public Stock(String stockCode, String stockName) {
this.stockCode = stockCode;
this.stockName = stockName;
}

@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "STOCK_ID", unique = true, nullable = false)
public Integer getStockId() {
return stockId;
}

public void setStockId(Integer stockId) {
this.stockId = stockId;
}

@Column(name = "STOCK_CODE", unique = true, nullable = false, length = 10)
public String getStockCode() {
return stockCode;
}

public void setStockCode(String stockCode) {
this.stockCode = stockCode;
}

@Column(name = "STOCK_NAME", unique = true, nullable = false, length = 20)
public String getStockName() {
return stockName;
}

public void setStockName(String stockName) {
this.stockName = stockName;
}
}



------------------------------------------

3. We need a Hibernate utill class to create hibernate session factory 

-------------------

package com.mkyong.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {

private static final SessionFactory sessionFactory = buildSessionFactory();
 
private static SessionFactory buildSessionFactory() {
try {
// Create the SessionFactory from hibernate.cfg.xml - for XML mapping
// return new Configuration().configure().buildSessionFactory();
// for annotations
return new Configuration().configure().buildSessionFactory();
} catch (Throwable ex) {
// Make sure you log the exception, as it might be swallowed
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
 
public static SessionFactory getSessionFactory() {
return sessionFactory;
}
 
public static void shutdown() {
// Close caches and connection pools
getSessionFactory().close();
}
}


-----------------------


to make the hibernate configuration we need hibernate configuration file.

/HibernateExample/src/main/resources/hibernate.cfg.xml

-----------------------------------


"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
  com.mysql.jdbc.Driver
  jdbc:mysql://localhost:3306/mkyong
  root
  root123
  org.hibernate.dialect.MySQLDialect
 
  true
 
 


-------------------------------


4. we need to add dependency to the pom file. without dependency code even compile.]
this is first most steps.
you can start project with adding dependency
/HibernateExample/pom.xml

--------------
org.hibernate
hibernate-core
4.1.4.Final


org.hibernate.common
hibernate-commons-annotations
4.0.1.Final


mysql
mysql-connector-java
5.1.9



javassist
javassist
3.12.1.GA

----------------------------------------------------

pom.xml willl be finally looks like this
----------------------------------------------------------


xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.mkyong
HibernateExample
jar
1.0-SNAPSHOT
HibernateExample
http://maven.apache.org


junit
junit
3.8.1
test

org.hibernate
hibernate-core
4.1.4.Final


org.hibernate.common
hibernate-commons-annotations
4.0.1.Final


mysql
mysql-connector-java
5.1.9



javassist
javassist
3.12.1.GA



org.codehaus.mojo
exec-maven-plugin
1.2.1
java
com.mkyong.App2
foo
bar



------------------------------------------------------------------


org.codehaus.mojo
exec-maven-plugin
1.2.1
java
com.mkyong.App2
foo
bar



this is to run main method
-------------------------------------------------------

5. Finally we need to test class to test our hibernate project. We create App2.java class

---------------------

package com.mkyong;

import org.hibernate.Session;

import com.mkyong.common.Stock;
import com.mkyong.util.HibernateUtil;

public class App2 {
public static void main(String[] args) {
System.out.println("Maven + Hibernate + MySQL");
Session session = HibernateUtil.getSessionFactory().openSession();

session.beginTransaction();
Stock stock = new Stock();

stock.setStockCode("4716");
stock.setStockName("SN4716");

session.save(stock);
session.getTransaction().commit();
}
}


-----------------------









Creating hibernate projects

Creating hibernate projects

http://www.mkyong.com/hibernate/quick-start-maven-hibernate-mysql-example/

this article is outdated


just run below command and see the templates available

C:\example\Tutorial\Hibernate>mvn archetype:generate
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: remote -> br.com.ingenieux:elasticbeanstalk-service-webapp-archetype (A Maven Archetype Encompassing RestAssured, Jetty, Jackson, Guice and Jersey
for Publishing JAX-RS-based Services on AWS' Elastic Beanstalk Service)
2: remote -> br.com.otavio.vraptor.archetypes:vraptor-archetype-blank (A simple project to start with VRaptor 4)
3: remote -> br.gov.frameworkdemoiselle.archetypes:demoiselle-jsf-jpa (Archetype for web applications (JSF + JPA) using Demoiselle Framework)
4: remote -> br.gov.frameworkdemoiselle.archetypes:demoiselle-minimal (Basic archetype for generic applications using Demoiselle Framework)
5: remote -> br.gov.frameworkdemoiselle.archetypes:demoiselle-vaadin-jpa (Archetype for Vaadin web applications)
6: remote -> ch.sbb.maven.archetypes:iib9-maven-projects (IBM Integration Bus 9 Maven Project Structure)
7: remote -> ch.sbb.maven.archetypes:wmb7-maven-projects (WebSphere Message Broker 7 Maven Project Structure)
8: remote -> co.ntier:spring-mvc-archetype (An extremely simple Spring MVC archetype, configured with NO XML.)
9: remote -> com.abiquo:storage-plugin-archetype (-)
10: remote -> com.agilejava.docbkx:docbkx-quickstart-archetype (-)
11: remote -> com.airhacks:igniter (An application template for building Java FX MVP applications
        with Dependency Injection and afterburner.fx)
12: remote -> com.airhacks:javaee7-essentials-archetype (Java EE 7 project template. Clean, lean and minimalistic.)
13: remote -> com.alibaba.citrus.sample:archetype-webx-quickstart (-)
14: remote -> com.amazonaws:aws-java-sdk-archetype (Maven archetype for a simple AWS Java application.)
15: remote -> com.andrewreitz.velcro:velcro (Awesome Maven archetype for Android)
16: remote -> com.astamuse:asta4d-archetype (an archetype that is automatically created from asta4d-sample.)
17: remote -> com.atolcd.alfresco:repo-archetype (Alfresco repository module archetype)
18: remote -> com.atolcd.alfresco:share-archetype (Alfresco Share module archetype)
19: remote -> com.bsb.common.vaadin:com.bsb.common.vaadin.embed-simple-archetype (-)
20: remote -> com.bsb.common.vaadin:com.bsb.common.vaadin7.embed-simple-archetype (-)
21: remote -> com.cedarsoft.open.archetype:multi (-)
22: remote -> com.cedarsoft.open.archetype:simple (-)
23: remote -> com.cloudfoundry.tothought:spring-data-basic (A basic setup for Spring Data + Hibernate + MySql)
24: remote -> com.crawljax.plugins.archetypes:crawljax-plugins-archetype (Generates a Crawljax project template.)
25: remote -> com.dkirrane.maven.archetype:ggitflow-maven-archetype (-)
26: remote -> com.dyuproject.protostuff.archetype:basic-gwt-webapp (webapp archetype using protostuff, json and gwt)
27: remote -> com.dyuproject.protostuff.archetype:basic-webapp (webapp archetype using protostuff, json and jquery)
28: remote -> com.dyuproject.protostuff.archetype:simple-gwt-webapp (webapp archetype using protobuf, json and gwt)
29: remote -> com.dyuproject.protostuff.archetype:simple-webapp (webapp archetype using protobuf, json and jquery)
30: remote -> com.eclipsesource.tabris:tabris-application (Archetype to create a Tabris based Application)
31: remote -> com.force.sdk:springmvc-archetype (-)
32: remote -> com.gfk.senbot:SenBotArchetype (Archetype to create new project exposing the SenBot (junit/cucumber/selenium acceptance test executor) t
o your test environment.)
33: remote -> com.gfk.senbot:SenBotDemo-archetype (A SenBot Demo project with the purpose to demonstrate all available SenBot features.)
34: remote -> com.github.akiraly.reusable-poms:simple-java-project-with-spring-context-archetype (-)
35: remote -> com.github.akiraly.reusable-poms:simple-java-project-with-spring-hibernate-querydsl-archetype (-)
36: remote -> com.github.akiraly.reusable-poms:simple-java-project-with-util-libs-archetype (-)
37: remote -> com.github.apetrelli.samplegwt:samplegwt-archetype (A complete but simple archetype that connects GWT to several technologies: JPA 2, Hi
bernate, Spring Core, Spring Security, Spring Transactions.)
38: remote -> com.github.casmi.archetypes:casmi-quickstart (Quickstart archetype for casmi project)
39: remote -> com.github.dakusui:logiaslisp (A JSON based Lisp processor.)
40: remote -> com.github.dakusui:symfonion (A JSON based music macro language processor.)
41: remote -> com.github.genthaler:ant-maven-plugin-archetype (Maven Archetype to generate an Ant-based Maven Plugin)
42: remote -> com.github.genthaler:beanshell-maven-plugin-archetype (Maven Archetype to generate an Beanshell-based Maven Plugin)
43: remote -> com.github.h0ru5.gwt:angulargwt-app-archetype (Archetype for Webapps using AngularGWT incl. example controller and scope)
44: remote -> com.github.h0ru5.gwt:angulargwt-module-archetype (Archetype for an AngularGwt Module with example service)
45: remote -> com.github.igor-petruk.archetypes:maven-archetype-executable (Executable Quickstart Archetype that is ready to run with 'java -jar')
46: remote -> com.github.igor-petruk.archetypes:maven-archetype-scala-executable (Creates executable Scala Project that is ready to run with 'java -ja
r')
47: remote -> com.github.jpaoletti:jpm-archetype (Archetype for a jpm-struts1-bootstrap project)
48: remote -> com.github.kospiotr:gwt-clean-app-archetype (-)
49: remote -> com.github.kospiotr:gwt-clean-sdv-app-archetype (-)
50: remote -> com.github.kospiotr:gwt-gxt-clean-sdv-app-archetype (-)
51: remote -> com.github.lalyos:standalone-jpa-eclipselink-archetype (StandAlone (j2se) jpa project with eclipseLink implementations using embedded De
rbiDB)
52: remote -> com.github.markusbernhardt:robotframework-archetype-annotationlibrary (Robot Framework archetype for creating a testsuite)
53: remote -> com.github.markusbernhardt:robotframework-archetype-quickstart (Robot Framework archetype for creating a testsuite)
54: remote -> com.github.markusbernhardt:robotframework-archetype-selenium2library (Robot Framework archetype for creating a testsuite)
55: remote -> com.github.mhshams:kotlin-quickstart-archetype (Kotlin Quick Start Archetype)
56: remote -> com.github.searls:jasmine-archetype (An archetype to get started with JavaScript unit testing with Jasmine.)
57: remote -> com.github.venkatramanm.swf-all:swf-archetype (Archetype to create apps using SWF)
58: remote -> com.github.venkatramanm.swf-all:swf-plugin-archetype (Archetype to create plugins for SWF)
59: remote -> com.google.appengine.archetypes:appengine-skeleton-archetype (-)
60: remote -> com.google.appengine.archetypes:guestbook-archetype (-)
61: remote -> com.google.appengine.archetypes:skeleton-archetype (-)
62: remote -> com.google.appengine.demos:guestbook-archetype (-)
63: remote -> com.google.code.plsqlmaven:plsql-package-archetype (a sample archetype that creates a project with a PL/SQL package inside and extends t
he parent project)
64: remote -> com.google.code.plsqlmaven:plsql-project-archetype (preconfigured PL/SQL project)
65: remote -> com.google.code.plsqlmaven:plsql-webapp-archetype (preconfigured PL/SQL webapp)
66: remote -> com.google.sitebricks:sitebricks-jetty-archetype (-)
67: remote -> com.googlecode.android-player-root-archetype:parent-archetype (-)
68: remote -> com.googlecode.apparat:apparat-archetype-asm (-)
69: remote -> com.googlecode.apparat:apparat-archetype-tdsi (-)
70: remote -> com.googlecode.etl-unit:etlunit-feature-archetype (-)
71: remote -> com.googlecode.etl-unit:etlunit-project-archetype (-)
72: remote -> com.googlecode.gwtquery:gquery-archetype (This archetype generates a Gwt-2.5.0-rc1 project with all set to use GwtQuery and its plugins.
)
73: remote -> com.googlecode.gwtquery:gquery-plugin-archetype (-)
74: remote -> com.googlecode.jannocessor:jannocessor-sample-archetype (Multi-module sample project for annotation-driven source code generation with J
Annocessor)
75: remote -> com.googlecode.jdbc-proc:jdbc-proc-archetype (Creates simple project with jdbc-proc support)
76: remote -> com.googlecode.metridoc:metridoc-archetype (-)
77: remote -> com.googlecode.mycontainer:mycontainer-gae-archetype (-)
78: remote -> com.googlecode.playn:playn-archetype (Archetype for PlayN game projects.)
79: remote -> com.highwise:weby (A simple spring mvc + hibernate project archetype)
80: remote -> com.ibm.sbt:sbt.sso.webapp-archetype (-)
81: remote -> com.jamcracker.adapter.jit:jit-adapter-archetype (-)
82: remote -> com.jgeppert.struts2.jquery:struts2-jquery-archetype-base (This Archetype provides a Webapp Configuration ready for the Struts2 jQuery P
lugin.)
83: remote -> com.jgeppert.struts2.jquery:struts2-jquery-archetype-mobile (This Archetype provides a Webapp Configuration ready for the Struts2 jQuery
 Mobile Plugin.)
84: remote -> com.jgeppert.struts2.jquery:struts2-jquery-bootstrap-archetype-grid (This Archetype provides a Webapp Configuration ready for the Struts
2 jQuery Grid Plugin and the Struts2
        Bootstrap Plugin.)
85: remote -> com.liferay.maven.archetypes:liferay-ext-archetype (Provides an archetype to create Liferay extensions.)
86: remote -> com.liferay.maven.archetypes:liferay-hook-archetype (Provides an archetype to create Liferay hooks.)
87: remote -> com.liferay.maven.archetypes:liferay-layouttpl-archetype (Provides an archetype to create Liferay layout templates.)
88: remote -> com.liferay.maven.archetypes:liferay-portlet-archetype (Provides an archetype to create Liferay portlets.)
89: remote -> com.liferay.maven.archetypes:liferay-portlet-icefaces-archetype (Provides an archetype to create Liferay ICEfaces portlets.)
90: remote -> com.liferay.maven.archetypes:liferay-portlet-jsf-archetype (Provides an archetype to create Liferay JSF portlets.)
91: remote -> com.liferay.maven.archetypes:liferay-portlet-liferay-faces-alloy-archetype (Provides an archetype to create Liferay Faces Alloy portlets
.)
92: remote -> com.liferay.maven.archetypes:liferay-portlet-primefaces-archetype (Provides an archetype to create Liferay PrimeFaces portlets.)
93: remote -> com.liferay.maven.archetypes:liferay-portlet-richfaces-archetype (Provides an archetype to create Liferay RichFaces portlets.)
94: remote -> com.liferay.maven.archetypes:liferay-servicebuilder-archetype (Provides an archetype to create Liferay Service Builder portlets.)
95: remote -> com.liferay.maven.archetypes:liferay-theme-archetype (Provides an archetype to create Liferay themes.)
96: remote -> com.liferay.maven.archetypes:liferay-web-archetype (Provides an archetype to create Liferay webs.)
97: remote -> com.lordofthejars.thymeleafarchetype:thymeleaf-spring-maven-archetype (Thymeleaf Spring Maven Archetype)
98: remote -> com.manydesigns:portofino-war-archetype (-)
99: remote -> com.matthewjosephtaylor.archetypes:application-archetype (Maven archetype for a single-jar application)
100: remote -> com.mikenimer:extjs-springmvc-webapp (A maven Archetype to create new EXTJS project powered by a spring MVC service.)
101: remote -> com.mycodefu:executable-jar-archetype (An archetype to create a Java project which is easy to deploy and execute.)
102: remote -> com.mysema.rdf:rdfbean-tapestry-quickstart (Archetype for creating a basic RDFBean Tapestry 5 application.)
103: remote -> com.mysema.rdfbean:rdfbean-tapestry-quickstart (-)
104: remote -> com.nativelibs4java:javacl-simple-tutorial (-)
105: remote -> com.nitorcreations:dope-archetype (-)
106: remote -> com.ontology2:centipede-archetype (archetype for command line applications based on Centipede, Spring and Guava)
107: remote -> com.pojosontheweb:woko-archetype (-)
108: remote -> com.proofpoint.platform:sample-server-archetype (Sample server archetype)
109: remote -> com.proofpoint.platform:skeleton-server-archetype (Skeleton server archetype)
110: remote -> com.pyx4me:j2me-simple (Maven 2 Archetype for midlet application using j2me-maven-plugin)
111: remote -> com.rapid7.pax:pax-runner-platform-archetype (An archetype for creating pax-runner platform definition files.)
112: remote -> com.rexsl:rexsl-maven-archetype (-)
113: remote -> com.rudolfschmidt:javaee7-essentials-archetype (minimal pom for javaee7 projects)
114: remote -> com.rudolfschmidt:javase7-essentials-archetype (minimal pom for javase7 projects)
115: remote -> com.rudolfschmidt:javase8-essentials-archetype (minimal pom for javase7 projects)
116: remote -> com.sibvisions.jvx:jvxapplication-archetype (A preconfigured setup for a JVx application)
117: remote -> com.sixdimensions.wcm.cq:cq-deploy-plugin (Maven plugin for automating code deployments to Adobe CQ.)
118: remote -> com.sixsq.slipstream:slipstream-module (-)
119: remote -> com.smb-tec.xo.archetypes:xo-neo4j-quickstart (Creates a skeleton for an XO-Neo4j application)
120: remote -> com.strategicgains.archetype:restexpress-cassandra (A Basic, Cassandra-backed Service Suite)
121: remote -> com.strategicgains.archetype:restexpress-minimal (A Minimal RestExpress Server)
122: remote -> com.strategicgains.archetype:restexpress-mongodb (A Basic, MongoDB-backed Service Suite)
123: remote -> com.strategicgains.archetype:restexpress-scaffold-minimal (A Minimal RestExpress Server)
124: remote -> com.strategicgains.archetype:restexpress-scaffold-mongodb (A Basic, MongoDB-backed Service Suite)
125: remote -> com.sun.faces:faces-2.1-test-war-archetype (Archetype to create automated test based on JSF 2.1)
126: remote -> com.sun.faces:faces-2.2-test-war-archetype (Create a JSF 2.2 vanilla app.)
127: remote -> com.sun.faces.regression:i_jsf_XXXX-archetype (-)
128: remote -> com.sun.faces.test:i_jsf_xxxx_htmlunit-archetype (-)
129: remote -> com.sun.jersey.archetypes:jersey-quickstart-ejb (An archetype which contains a simple Jersey based EJB project.)
130: remote -> com.sun.jersey.archetypes:jersey-quickstart-grizzly (An archetype which contains a quickstart Jersey project based on Grizzly container
.)
131: remote -> com.sun.jersey.archetypes:jersey-quickstart-grizzly2 (An archetype which contains a quickstart Jersey project based on Grizzly2 contain
er.)
132: remote -> com.sun.jersey.archetypes:jersey-quickstart-webapp (An archetype which contains a sample Jersey based Webapp project.)
133: remote -> com.taobao.itest:itest-sample-s30-archetype (-)
134: remote -> com.tqlab.sense:tqlab-sense-archetype (tqlab sense archetype)
135: remote -> com.vaadin:vaadin-archetype-addon (-)
136: remote -> com.vaadin:vaadin-archetype-application (This archetype generates a simple Vaadin application as a Maven project.)
137: remote -> com.vaadin:vaadin-archetype-clean (This archetype generates a simple Vaadin application as a Maven project.
      No custom widgetset is included.)
138: remote -> com.vaadin:vaadin-archetype-jpacontainer (This archetype generates a simple Vaadin application using JPAContainer as a Maven project.)
139: remote -> com.vaadin:vaadin-archetype-portlet (This archetype creates a simple porlet with required Vaadin dependencies. In addition to standard
JSR 286 configurations the archetype also adds liferay specific configuration files, but they shoudn't affect other portals.)
140: remote -> com.vaadin:vaadin-archetype-sample (This archetype generates a Vaadin application as a Maven project.
      The application contains a custom GWT widgetset that is compiled
      by the GWT compiler and integrated into the project as part of the
      build process. The application is based on the Vaadin Color Picker
      Demo application available at http://vaadin.com.)
141: remote -> com.vaadin:vaadin-archetype-touchkit (This archetype generates a simple Vaadin application using TouchKit as a Maven project.)
142: remote -> com.vaadin:vaadin-archetype-widget (This archetype generates a Vaadin widget project for Vaadin 7.x and a test application for Vaadin 7
.1.)
143: remote -> com.vaadin:vaadin-maven-plugin (Maven plugin for Vaadin.)
144: remote -> com.vaushell:archetype-exec (archetype for an executable (not a library))
145: remote -> com.vaushell:archetype-library (archetype for a library (not an executable))
146: remote -> com.vektorsoft.demux.tools:demux-android-archetype (Create Android application structure for DEMUX Framework applications)
147: remote -> com.vektorsoft.demux.tools:demux-android-bundle-archetype (Create OSGI bundle for DEMUX Android projects)
148: remote -> com.vektorsoft.demux.tools:demux-bundle-archetype (Create application bundles for DEMUX Framework applications)
149: remote -> com.vektorsoft.demux.tools:demux-jfx-archetype (Create JavaFX desktop application structure for DEMUX Framework applications)
150: remote -> com.wadpam.gaelic:gaelic-archetype-starter (-)
151: remote -> com.willowtreeapps:oak-archetype (-)
152: remote -> com.willowtreeapps:oak-dagger-api15-archetype (-)
153: remote -> com.willowtreeapps:oak-dagger-archetype (-)
154: remote -> com.willowtreeapps:oak-gradle-archetype (-)
155: remote -> com.zenjava:javafx-basic-archetype (The JavaFX Basic Archetype provides core functionality for assembling JavaFX applications.)
156: remote -> com.zenjava:javafx-rest-archetype (The JavaFX Basic Archetype provides a Maven archetype for generating a basic JavaFX REST client-serv
er starter
        project.)
157: remote -> de.akquinet.android.archetypes:android-gcm-quickstart (Creates a skeleton for a GCM Android application)
158: remote -> de.akquinet.android.archetypes:android-library-quickstart (Creates a skeleton for an Android library)
159: remote -> de.akquinet.android.archetypes:android-quickstart (Creates a skeleton for an Android application)
160: remote -> de.akquinet.android.archetypes:android-release (Creates a skeleton for an Android application,
    instrumentation tests and ready-to-publish application on releases.)
161: remote -> de.akquinet.android.archetypes:android-with-test (Creates a skeleton for an Android application and instrumentation tests)
162: remote -> de.akquinet.android.archetypes:stand-archetype (Creates a skeleton for an Android application using the Stand framework stack)
163: remote -> de.akquinet.chameria:chameria-quickstart-archetype (-)
164: remote -> de.akquinet.javascript.archetypes:javascript-jqueryplugin (-)
165: remote -> de.akquinet.javascript.archetypes:javascript-quickstart (-)
166: remote -> de.akquinet.jbosscc:jbosscc-javaee6-modular-ear-archetype (Maven Archetype to generate a modular Java EE 6 based project skeleton.)
167: remote -> de.akquinet.jbosscc:jbosscc-seam-archetype (Maven Archetype to generate a Seam Application - running on JBoss AS7)
168: remote -> de.cologneintelligence:archetype-fitgoodies-quickstart (Archetype which generates an FitGoodies-enabled example project)
169: remote -> de.crowdcode.kissmda.maven:kissmda-maven-app-archetype (-)
170: remote -> de.crowdcode.kissmda.maven:kissmda-maven-cartridge-archetype (-)
171: remote -> de.cubeisland.maven.archetypes:archetype-cubeengine-module (This archetype generates a new module for the Cube Engine.)
172: remote -> de.dailab:jiac-agent-config-temp (-)
173: remote -> de.dailab:jiac-config-temp (Creates a jiac agent project, with spring-config templates for an agent and an agent bean)
174: remote -> de.dailab:jiac-empty (Creates a empty jiac project. POM only)
175: remote -> de.dailab:jiac-jsw (Creates a runnable agent, which can used as system service/daemon)
176: remote -> de.dailab:jiac-multi-module (Creates jiac multi module project with api and domain module)
177: remote -> de.holisticon.archetypes:java-library (Please refer to https://github.com/holisticon/java-library-archetype.)
178: remote -> de.learnlib.archetypes:complete (Archetype which includes all LearnLib dependencies)
179: remote -> de.learnlib.archetypes:core (Archetype providing dependencies for core functionalities of LearnLib)
180: remote -> de.learnlib.archetypes:typical (Archetype for a typical LearnLib setup, including the most commonly used dependencies)
181: remote -> de.saumya.mojo:rails-maven-archetype (-)
182: remote -> de.schlichtherle:javafx-scala-demo (An archetype for a standalone JavaFX 2.0 application written in Scala.
The generated application is translated from the Colorful Circles demo from the
JavaFX 2.0 SDK.)
183: remote -> de.schlichtherle.truezip:truezip-archetype-file (TrueZIP File* module application - requires JSE 6.)
184: remote -> de.schlichtherle.truezip:truezip-archetype-path (TrueZIP Path module application - requires JSE 7.)
185: remote -> dk.jacobve.maven.archetypes:maven-archetype-flex (An archetype which contains a sample Maven Flex project using the israfil maven plugi
n)
186: remote -> dk.navicon:valkyrie-rcp-archetype (Archetype for creating new Valkyrie projects.)
187: remote -> es.ucm.fdi.grasia.faerie.archetypes:basic (Project for definition and implementation of an architecture/framework for Ambient-Assited L
iving systems)
188: remote -> eu.stratosphere:quickstart-java (-)
189: remote -> eu.stratosphere:quickstart-scala (-)
190: remote -> eu.vitaliy:java6se-spring3-archetype (Simple spring 3 archetype)
191: remote -> fr.ybonnel:simpleweb4j-archetype (An archetype for SimpleWeb4j.)
192: remote -> hu.meza.tools:testAutomation (An archetype for test automation projects)
193: remote -> im.bci:jnuit-archetype (Create a full featured game project: lwjgl for rendering, jnuit for GUI, artemis for Entity System, guice for d
ependency injection, maven plugins for installer/package generators for Windows, Debian, Fedora and other OS, support of Keyboard/Mouse/Gamepad inputs
 settings...)
194: remote -> io.airlift:sample-server-archetype (Sample server archetype)
195: remote -> io.airlift:skeleton-server-archetype (Skeleton server archetype)
196: remote -> io.brooklyn:brooklyn-archetype-quickstart (This project defines an archetype for creating new projects which consume brooklyn,
        including an example application and an example new entity type,
        able to build an OSGi JAR and a binary assembly, with logging and READMEs.)
197: remote -> io.fabric8.archetypes:camel-cxf-code-first-archetype (Creates a new Camel project using CXF in code (Java) first.)
198: remote -> io.fabric8.archetypes:camel-cxf-contract-first-archetype (Creates a new Camel project using CXF in contract (WSDL) first.)
199: remote -> io.fabric8.archetypes:camel-drools-archetype (Creates a new Camel project using the Drools rule engine.)
200: remote -> io.fabric8.archetypes:camel-webservice-archetype (Creates a new Camel web services project)
201: remote -> io.fabric8.archetypes:cbr-archetype (Creates a new quickstart project for Camel based Content Based Router.)
202: remote -> io.fabric8.archetypes:eip-archetype (Creates a new quickstart project for Camel based Enterprise Integration Patterns.)
203: remote -> io.fabric8.archetypes:errors-archetype (Creates a new quickstart project using Camel based Error handling.)
204: remote -> io.fabric8.archetypes:jms-archetype (Creates a new quickstart project using Camel and JMS.)
205: remote -> io.fabric8.archetypes:rest-archetype (Creates a new quickstart project using REST.)
206: remote -> io.fabric8.archetypes:secure-rest-archetype (Creates a new quickstart project using Secure REST.)
207: remote -> io.fabric8.archetypes:secure-soap-archetype (Creates a new quickstart project using Secure SOAP.)
208: remote -> io.fabric8.archetypes:soap-archetype (Creates a new quickstart project using SOAP.)
209: remote -> io.vertx:vertx-maven-archetype (-)
210: remote -> it.amattioli:javate-zk-archetype (-)
211: remote -> it.amattioli:javate-zk-jpa-archetype (-)
212: remote -> it.amattioli.archetypes:javate-zk-archetype (-)
213: remote -> it.cosenonjaviste:jsf2-spring4-jpa2-archetype (This archetype is based on org.fluttercode.knappsack/spring-jsf-jpa-archetype/1.1 one.
This new archetype upgrade libraries to JSF 2.2, Spring 4 and JPA 2.1)
214: remote -> it.tidalwave.netbeans:netbeans-platform-application-archetype (Tidalwave NetBeans Platform Application Archetype)
215: remote -> it.tidalwave.netbeans:netbeans-platform-archetype (Tidalwave NetBeans Platform Archetype)
216: remote -> it.tidalwave.northernwind:simple-project-site-archetype-1 (-)
217: remote -> it.tidalwave.northernwind:simple-site1-step1-archetype (-)
218: remote -> it.tidalwave.thesefoolishthings:project-archetype (TheseFoolishThings - Project Archetype)
219: remote -> javax.faces:javax.faces-war-archetype (A simple project with war packaging that depends on JSF 2.2 and
        javaee 6, in that order.)
220: remote -> jboss:mobicents-ra-mavenization-archetype (-)
221: remote -> me.noroutine:tobacco-bootstrap (Web Application with all modern client libraries)
222: remote -> net.alchim31.maven:scala-archetype-simple (The maven-scala-plugin is used for compiling/testing/running/documenting scala code in maven
.)
223: remote -> net.automatalib.archetypes:complete (-)
224: remote -> net.automatalib.archetypes:core (-)
225: remote -> net.automatalib.archetypes:typical (-)
226: remote -> net.avh4.mvn.archetype:java-1.6-archetype (-)
227: remote -> net.code-story:quickstart (-)
228: remote -> net.contextfw:web-quickstart (Context Web Application Framework - Quickstart)
229: remote -> net.databinder:data-app (To make creating a new Databinder application easier, this archetype includes all required sources and resourc
es.)
230: remote -> net.databinder.maven.net.databinder:data-app (To make creating a new Databinder application easier, this archetype includes all require
d sources and resources.)
231: remote -> net.devonlinux.solr:solr-quickstart-archetype (-)
232: remote -> net.devonlinux.solr:solr-quickstart-archetype-no-acceptance-tests (-)
233: remote -> net.flexmojos.oss:flexmojos-archetypes-application (-)
234: remote -> net.flexmojos.oss:flexmojos-archetypes-library (-)
235: remote -> net.flexmojos.oss:flexmojos-archetypes-modular-webapp (-)
236: remote -> net.ja731j.bukkit:bukkit-plugin-simple (A Maven archetype which creates a simple Bukkit plugin)
237: remote -> net.java.truelicense:truelicense-maven-archetype (Provides a Maven archetype for license vendor and consumer applications.)
238: remote -> net.java.trueupdate:trueupdate-archetype-glassfish (An archetype for a TrueUpdate application running in Oracle GlassFish.)
239: remote -> net.java.trueupdate:trueupdate-archetype-tomcat (An archetype for a TrueUpdate application running in Apache Tomcat.)
240: remote -> net.java.truevfs:truevfs-archetype-access (Showcases the client API of the module TrueVFS Access.)
241: remote -> net.java.truevfs:truevfs-archetype-profile (Creates a custom TrueVFS Profile which bundles all selected TrueVFS
    modules for ease of use with and without Maven.)
242: remote -> net.kindleit:gae-archetype-gwt (Archetype for creating maven-gae projects that uses GWT for the view)
243: remote -> net.kindleit:gae-archetype-jsf (Archetype for creating maven-gae projects that works under Java Server Faces)
244: remote -> net.kindleit:gae-archetype-jsp (Archetype for creating maven-gae projects that uses jsp for the view)
245: remote -> net.kindleit:gae-archetype-objectify-jsp (Archetype for creating maven-gae projects that uses jsp for the view and Objectify for the OR
M.)
246: remote -> net.kindleit:gae-archetype-wicket (Archetype for creating maven-gae projects based on apache wicket framework)
247: remote -> net.ladstatt:scala-javafx-archetype (The Scala JavaFX Archetype provides a simple template for a scala based
        JavaFX project)
248: remote -> net.liftweb:lift-archetype-basic (Basic project archetype for Lift Web Framework (with database, logging, user management).)
249: remote -> net.liftweb:lift-archetype-basic_2.10 (Basic project archetype for Lift Web Framework (with database, logging, user management).)
250: remote -> net.liftweb:lift-archetype-basic_2.7.7 (Basic project archetype for Lift Web Framework (with database, logging, user management).)
251: remote -> net.liftweb:lift-archetype-basic_2.8.0 (Basic project archetype for Lift Web Framework (with database, logging, user management).)
252: remote -> net.liftweb:lift-archetype-basic_2.8.1 (-)
253: remote -> net.liftweb:lift-archetype-basic_2.9.1 (Basic project archetype for Lift Web Framework (with database, logging, user management).)
254: remote -> net.liftweb:lift-archetype-blank (Blank project archetype for Lift Web Framework.)
255: remote -> net.liftweb:lift-archetype-blank_2.10 (Blank project archetype for Lift Web Framework.)
256: remote -> net.liftweb:lift-archetype-blank_2.7.7 (Blank project archetype for Lift Web Framework.)
257: remote -> net.liftweb:lift-archetype-blank_2.8.0 (Blank project archetype for Lift Web Framework.)
258: remote -> net.liftweb:lift-archetype-blank_2.8.1 (-)
259: remote -> net.liftweb:lift-archetype-blank_2.9.1 (Blank project archetype for Lift Web Framework.)
260: remote -> net.liftweb:lift-archetype-hellolift (Archetype - hellolift, a sample Lift application)
261: remote -> net.liftweb:lift-archetype-jpa-basic (Basic JPA archetype for Lift Web Framework.)
262: remote -> net.liftweb:lift-archetype-jpa-basic_2.10 (Basic JPA archetype for Lift Web Framework.)
263: remote -> net.liftweb:lift-archetype-jpa-basic_2.7.7 (Basic JPA archetype for Lift Web Framework.)
264: remote -> net.liftweb:lift-archetype-jpa-basic_2.8.0 (Basic JPA archetype for Lift Web Framework.)
265: remote -> net.liftweb:lift-archetype-jpa-basic_2.8.1 (-)
266: remote -> net.liftweb:lift-archetype-jpa-basic_2.9.1 (Basic JPA archetype for Lift Web Framework.)
267: remote -> net.liftweb:lift-archetype-jpa-blank (Blank JPA archetype for Lift Web Framework.)
268: remote -> net.liftweb:lift-archetype-jpa-blank-single (Blank JPA archetype for Lift Web Framework (single project).)
269: remote -> net.liftweb:lift-archetype-jpa-blank-single_2.10 (Blank JPA archetype for Lift Web Framework (single project).)
270: remote -> net.liftweb:lift-archetype-jpa-blank-single_2.7.7 (Blank JPA archetype for Lift Web Framework (single project).)
271: remote -> net.liftweb:lift-archetype-jpa-blank-single_2.8.0 (Blank JPA archetype for Lift Web Framework (single project).)
272: remote -> net.liftweb:lift-archetype-jpa-blank-single_2.8.1 (-)
273: remote -> net.liftweb:lift-archetype-jpa-blank-single_2.9.1 (Blank JPA archetype for Lift Web Framework (single project).)
274: remote -> net.liftweb:lift-archetype-jpa-blank_2.10 (Blank JPA archetype for Lift Web Framework.)
275: remote -> net.liftweb:lift-archetype-jpa-blank_2.7.7 (Blank JPA archetype for Lift Web Framework.)
276: remote -> net.liftweb:lift-archetype-jpa-blank_2.8.0 (Blank JPA archetype for Lift Web Framework.)
277: remote -> net.liftweb:lift-archetype-jpa-blank_2.8.1 (-)
278: remote -> net.liftweb:lift-archetype-jpa-blank_2.9.1 (Blank JPA archetype for Lift Web Framework.)
279: remote -> net.liftweb:lift-archetype-mvc_2.10 (Minimal MVC based project archetype for Lift Web Framework.)
280: remote -> net.liftweb:lift-archetype-mvc_2.9.1 (Minimal MVC based project archetype for Lift Web Framework.)
281: remote -> net.liftweb:lift-archetype-sbt (Basic project archetype for Lift Web Framework (with database, logging, user management) using the sbt
build system)
282: remote -> net.liftweb:lift-archetype-sbt_2.7.7 (Basic project archetype for Lift Web Framework (with database, logging, user management) using th
e sbt build system)
283: remote -> net.liftweb:lift-archetype-sbt_2.8.0 (Basic project archetype for Lift Web Framework (with database, logging, user management) using th
e sbt build system)
284: remote -> net.liftweb:lift-archetype-sbt_2.8.1 (-)
285: remote -> net.liftweb:lift-archetype-sbt_2.9.1 (Basic project archetype for Lift Web Framework (with database, logging, user management) using th
e sbt build system)
286: remote -> net.officefloor.maven:woof-archetype (Archetype to generate a WoOF project)
287: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.business (This is the business archetype of Osgiliath framework)
288: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.business.blueprint (This is the business archetype of Osgiliath framework)
289: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.business.cdi (This is the business archetype of Osgiliath framework)
290: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.model (This is the Model archetype of Osgiliath framework)
291: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.parent (This is the parent archetype of Osgiliath framework)
292: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.routes (This is the route archetype of osgiliath framework)
293: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.routes.blueprint (This is the route archetype of osgiliath framework)
294: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.routes.cdi (This is the route archetype of osgiliath framework)
295: remote -> net.osgiliath.archetypes:net.osgiliath.archetype.ui (This is the ui archetype of Osgiliath framework)
296: remote -> net.phaedra:phaedra-archetype (-)
297: remote -> net.sf.ingenias:iafarch-empty (-)
298: remote -> net.sf.ingenias:iafarch-gui (-)
299: remote -> net.sf.ingenias:iafarch-helloworld (-)
300: remote -> net.sf.ingenias:iafarch-interaction (-)
301: remote -> net.sf.itcb.archetype:common-archetype (Archetype that might be used by IT managers in order to create the common packages of custom IT
.
      groupId, artifactId, package, version, companyMainGroupId, companyMainArtifactId, companyMainVersion, company, companyUrl have to be defined in
archetype execution.
      By convention, we recommend to call this module common-"yourcompany".)
302: remote -> net.sf.itcb.archetype:main-archetype (Archetype that might be used by IT managers in order to create the base of custom IT.
      archetypeId, groupId, version, company and companyUrl have to be defined in archetype execution.
      By convention, we recommend to call this module main-"yourcompany".)
303: remote -> net.sf.jlue:jlue-archetype-basic (Archetype - basic project for Jlue)
304: remote -> net.sf.jlue:jlue-archetype-blank (Archetype - blank project for Jlue)
305: remote -> net.sf.maven-autotools:maven-autotools-archetype-executable (-)
306: remote -> net.sf.maven-autotools:maven-autotools-archetype-shared (-)
307: remote -> net.sf.maven-har:maven-archetype-har (-)
308: remote -> net.sf.maven-sar:maven-archetype-sar (-)
309: remote -> net.sf.mgp:maven-archetype-gwt (An archetype which contains a sample Maven GWT project.)
310: remote -> net.sf.portletunit:portletunit-portlet-archetype (An archetype that creates a simple porltet with unit tests.)
311: remote -> net.sf.squirrel-sql.plugins:squirrelsql-plugin-archetype (This project produces the maven archetype that can be used to generate a SQui
rreL
                Plugin
                maven project. The project that is produced contains an Example plugin that demonstrates the use
                of key plugin APIs.)
312: remote -> net.sf.uctool:uctool-archetype (Creates a new project ready to be used with Use Case Tool.)
313: remote -> net.sourceforge.ota-tools.schema:ota-tools-schema-archetype (-)
314: remote -> net.thejeearchitectcookbook:jsf-jqmobile-archetype (JSF 2 and JQuery Mobile basic web archetype.)
315: remote -> net.thucydides:thucydides-easyb-archetype (Thucydides automated acceptance testing project using Selenium 2, JUnit and easyb)
316: remote -> net.thucydides:thucydides-jbehave-archetype (Thucydides automated acceptance testing project using Selenium 2, JUnit and JBehave)
317: remote -> net.thucydides:thucydides-simple-archetype (Thucydides automated acceptance testing project using Selenium 2 and JUnit)
318: remote -> net.trajano.archetype:java-archetype (This is an archetype type for a Java artifact.)
319: remote -> net.wasdev.wlp.maven:liberty-plugin-archetype (-)
320: remote -> no.tornado:modular-app-archetype (Modular application archetype based on Tornado Inject - One service and one client module.)
321: remote -> no.tornado:web-quickstart (Quickstart Archetype for)
322: remote -> org.aerysoft.minimaven:minimaven-ghsite-simple (A simple Maven archetype for GitHub-hosted static website.)
323: remote -> org.antlr:antlr3-maven-archetype (ANTLR 3 Maven Archetype)
324: remote -> org.apache.accumulo:accumulo-instamo-archetype (-)
325: remote -> org.apache.archiva:archiva-consumer-archetype (Simple archetype to create archiva consumers)
326: remote -> org.apache.avro:avro-service-archetype (Archetype that generates a simple example Avro service)
327: remote -> org.apache.camel:camel-component (-)
328: remote -> org.apache.camel:camel-router (-)
329: remote -> org.apache.camel.archetypes:camel-archetype-activemq (Creates a new Camel project that configures and interacts with ActiveMQ.)
330: remote -> org.apache.camel.archetypes:camel-archetype-blueprint (Creates a new Camel project with OSGi blueprint support. Ready to be deployed in
 OSGi.)
331: remote -> org.apache.camel.archetypes:camel-archetype-component (Creates a new Camel component.)
332: remote -> org.apache.camel.archetypes:camel-archetype-component-scala (Creates a new Camel component with Scala.)
333: remote -> org.apache.camel.archetypes:camel-archetype-cxf-code-first-blueprint (Creates a new Camel project with Apache CXF code-first example us
ing OSGi blueprint.)
334: remote -> org.apache.camel.archetypes:camel-archetype-cxf-contract-first-blueprint (Creates a new Camel project with Apache CXF contract-first ex
ample using OSGi blueprint.)
335: remote -> org.apache.camel.archetypes:camel-archetype-dataformat (Creates a new Camel data format.)
336: remote -> org.apache.camel.archetypes:camel-archetype-groovy (Creates a new Camel project using Groovy DSL.)
337: remote -> org.apache.camel.archetypes:camel-archetype-java (Creates a new Camel project using Java DSL.)
338: remote -> org.apache.camel.archetypes:camel-archetype-scala (Creates a new Camel project using Scala DSL.)
339: remote -> org.apache.camel.archetypes:camel-archetype-spring (Creates a new Camel project with added Spring DSL support.)
340: remote -> org.apache.camel.archetypes:camel-archetype-spring-dm (Creates a new Camel project with added Spring DSL support. Ready to be deployed
in OSGi.)
341: remote -> org.apache.camel.archetypes:camel-archetype-war (-)
342: remote -> org.apache.camel.archetypes:camel-archetype-web (Creates a new Camel web project that deploys the Camel routes as a WAR)
343: remote -> org.apache.camel.archetypes:camel-archetype-webconsole (Creates a new Camel project that deploys the Camel Web Console, REST API, and y
our routes as a WAR)
344: remote -> org.apache.chemistry.opencmis:chemistry-opencmis-server-archetype (OpenCMIS Server Framework archetype)
345: remote -> org.apache.clerezza:internal.archetype (Generic archetype for clerezza projects)
346: remote -> org.apache.cocoon:cocoon-22-archetype-block (-)
347: remote -> org.apache.cocoon:cocoon-22-archetype-block-plain (-)
348: remote -> org.apache.cocoon:cocoon-22-archetype-webapp (-)
349: remote -> org.apache.cocoon.archetype-block:cocoon-archetype-block (-)
350: remote -> org.apache.cocoon.archetype-parent:cocoon-archetype-parent (-)
351: remote -> org.apache.cocoon.archetype-sample:cocoon-archetype-sample (-)
352: remote -> org.apache.cocoon.archetype-webapp:cocoon-archetype-webapp (-)
353: remote -> org.apache.crunch:crunch-archetype (Create a basic, self-contained job for Apache Crunch.)
354: remote -> org.apache.cxf:cxf-http-basic (-)
355: remote -> org.apache.cxf.archetype:cxf-jaxrs-service (Simple CXF JAX-RS webapp service using Spring configuration)
356: remote -> org.apache.cxf.archetype:cxf-jaxws-javafirst (Creates a project for developing a Web service starting from Java code)
357: remote -> org.apache.directmemory.server:server-example-archetype (-)
358: remote -> org.apache.directory.server:apacheds-schema-archetype (-)
359: remote -> org.apache.directory.server:apacheds-testcase-archetype (-)
360: remote -> org.apache.felix:maven-ipojo-plugin (Maven Plugin to package iPOJO-powered bundles.)
361: remote -> org.apache.geronimo.buildsupport:geronimo-archetype-testsuite (Plugin to help create a testsuite)
362: remote -> org.apache.geronimo.buildsupport:geronimo-assembly-archetype (-)
363: remote -> org.apache.geronimo.buildsupport:geronimo-plugin-archetype (-)
364: remote -> org.apache.geronimo.plugins:geronimo-archetype-testsuite (Plugin to help create a testsuite)
365: remote -> org.apache.geronimo.samples:geronimo-samples-archetype (Plugin to help create a samples project)
366: remote -> org.apache.isis:quickstart-archetype (-)
367: remote -> org.apache.isis.archetype:quickstart_wicket_restful_jdo-archetype (-)
368: remote -> org.apache.isis.archetype:simple_wicket_restful_jdo-archetype (-)
369: remote -> org.apache.karaf.archetypes:archetypes-command (-)
370: remote -> org.apache.karaf.archetypes:karaf-assembly-archetype (This archetype sets up an empty karaf assembly project.)
371: remote -> org.apache.karaf.archetypes:karaf-blueprint-archetype (An archetype for creating a simple blueprint bundle.)
372: remote -> org.apache.karaf.archetypes:karaf-bundle-archetype (A simple bundle archetype.)
373: remote -> org.apache.karaf.archetypes:karaf-command-archetype (A Karaf command archetype.)
374: remote -> org.apache.karaf.archetypes:karaf-feature-archetype (This archetype sets up an empty karaf features project.)
375: remote -> org.apache.karaf.archetypes:karaf-kar-archetype (This archetype sets up an empty karaf kar project.)
376: remote -> org.apache.karaf.eik.archetypes:eik-camel-archetype (Camel PDE plugin to be used in EIK)
377: remote -> org.apache.marmotta:marmotta-archetype-module (This Maven Archetype allows creating the basic structure for an Marmotta Module)
378: remote -> org.apache.marmotta:marmotta-archetype-webapp (Web Application bundle (WAR file) containing Apache Marmotta)
379: remote -> org.apache.maven.archetypes:maven-archetype-archetype (An archetype which contains a sample archetype.)
380: remote -> org.apache.maven.archetypes:maven-archetype-j2ee-simple (An archetype which contains a simplifed sample J2EE application.)
381: remote -> org.apache.maven.archetypes:maven-archetype-marmalade-mojo (-)
382: remote -> org.apache.maven.archetypes:maven-archetype-mojo (An archetype which contains a sample a sample Maven plugin.)
383: remote -> org.apache.maven.archetypes:maven-archetype-plugin (An archetype which contains a sample Maven plugin.)
384: remote -> org.apache.maven.archetypes:maven-archetype-plugin-site (An archetype which contains a sample Maven plugin site. This archetype can be
layered upon an
    existing Maven plugin project.)
385: remote -> org.apache.maven.archetypes:maven-archetype-portlet (An archetype which contains a sample JSR-268 Portlet.)
386: remote -> org.apache.maven.archetypes:maven-archetype-profiles (-)
387: remote -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.)
388: remote -> org.apache.maven.archetypes:maven-archetype-site (An archetype which contains a sample Maven site which demonstrates some of the suppor
ted document types like
    APT, XDoc, and FML and demonstrates how to i18n your site. This archetype can be layered
    upon an existing Maven project.)
389: remote -> org.apache.maven.archetypes:maven-archetype-site-simple (An archetype which contains a sample Maven site.)
390: remote -> org.apache.maven.archetypes:maven-archetype-webapp (An archetype which contains a sample Maven Webapp project.)
391: remote -> org.apache.myfaces.buildtools:myfaces-archetype-codi-jsf12 (Archetype to create a new JSF 1.2 webapp based on MyFaces CODI)
392: remote -> org.apache.myfaces.buildtools:myfaces-archetype-codi-jsf20 (Archetype to create a new JSF 2.0 webapp based on MyFaces CODI)
393: remote -> org.apache.myfaces.buildtools:myfaces-archetype-core-integration-test (Archetype to create a new MyFaces core project used for integrat
ion tests via cargo and HtmlUnit.
        Projects created via this archetype aim to test specific issues from the MyFaces core JIRA issue
        tracker and can be directly added to the MyFaces core integration-tests module.)
394: remote -> org.apache.myfaces.buildtools:myfaces-archetype-helloworld (Archetype to create a new webapp based on myfaces)
395: remote -> org.apache.myfaces.buildtools:myfaces-archetype-helloworld-facelets (Archetype to create a new webapp based on MyFaces and Facelets)
396: remote -> org.apache.myfaces.buildtools:myfaces-archetype-helloworld-portlets (Archetype to create a new portlet webapp based on myfaces)
397: remote -> org.apache.myfaces.buildtools:myfaces-archetype-helloworld20 (Archetype to create a new webapp based on MyFaces 2.0)
398: remote -> org.apache.myfaces.buildtools:myfaces-archetype-helloworld20-debug (Archetype to create a new webapp based on MyFaces 2.0, specially fo
r debug issues)
399: remote -> org.apache.myfaces.buildtools:myfaces-archetype-helloworld20-owb (Archetype to create a new webapp based on MyFaces 2.0 with OpenWebBea
ns)
400: remote -> org.apache.myfaces.buildtools:myfaces-archetype-jsfcomponents (Archetype to create a libary project of JSF components)
401: remote -> org.apache.myfaces.buildtools:myfaces-archetype-jsfcomponents20 (Archetype to create a libary project of JSF 2.0 components)
402: remote -> org.apache.myfaces.buildtools:myfaces-archetype-trinidad (Archetype to create a new webapp based on Trinidad)
403: remote -> org.apache.myfaces.buildtools:myfaces-archetype-trinidad20 (Archetype to create a new webapp based on Trinidad and JSF 2.0)
404: remote -> org.apache.myfaces.trinidadbuild:myfaces-archetype-trinidad (Archetype to ease the burden of creating a new application based with Trin
idad)
405: remote -> org.apache.npanday:maven-archetype-dotnet-simple (-)
406: remote -> org.apache.npanday:maven-archetype-netexecutable (-)
407: remote -> org.apache.npanday:maven-archetype-vb-simple (-)
408: remote -> org.apache.olingo:olingo-odata2-sample-cars-annotation-archetype (-)
409: remote -> org.apache.olingo:olingo-odata2-sample-cars-annotation-archetype-incubating (-)
410: remote -> org.apache.olingo:olingo-odata2-sample-cars-jpa-archetype (-)
411: remote -> org.apache.olingo:olingo-odata2-sample-cars-service-archetype (-)
412: remote -> org.apache.olingo:olingo-odata2-sample-cars-service-archetype-incubating (-)
413: remote -> org.apache.oodt:opsui-archetype (-)
414: remote -> org.apache.oodt:radix-archetype (-)
415: remote -> org.apache.openejb.maven:tomee-webapp-archetype (-)
416: remote -> org.apache.portals.jetspeed-2:application-archetype (Jetspeed-2 Maven2 Archetype used to generate portal application templates.)
417: remote -> org.apache.portals.jetspeed-2:component-archetype (Jetspeed-2 Maven2 Archetype used to generate component templates to
        be used by other components and applications.)
418: remote -> org.apache.portals.jetspeed-2:jetspeed-archetype (Jetspeed 2 Maven Archetype)
419: remote -> org.apache.portals.jetspeed-2:portal-archetype (Jetspeed-2 Maven2 Archetype used to generate portal instances.)
420: remote -> org.apache.portals.jetspeed-2:portal-component-archetype (Jetspeed-2 Maven2 Archetype used to generate component templates to
        be injected/installed as a library in the portal application itself.)
421: remote -> org.apache.portals.jetspeed-2:shared-component-archetype (Jetspeed-2 Maven2 Archetype used to generate component templates to
        be installed as a shared library for all portlet/web applications.)
422: remote -> org.apache.rave:rave-custom-project-archetype (An Archetype to create a custom Apache Rave project)
423: remote -> org.apache.servicemix.tooling:servicemix-bean-service-unit (-)
424: remote -> org.apache.servicemix.tooling:servicemix-binding-component (-)
425: remote -> org.apache.servicemix.tooling:servicemix-camel-osgi-bundle (-)
426: remote -> org.apache.servicemix.tooling:servicemix-camel-service-unit (-)
427: remote -> org.apache.servicemix.tooling:servicemix-cxf-bc-service-unit (-)
428: remote -> org.apache.servicemix.tooling:servicemix-cxf-code-first-osgi-bundle (-)
429: remote -> org.apache.servicemix.tooling:servicemix-cxf-se-service-unit (-)
430: remote -> org.apache.servicemix.tooling:servicemix-cxf-se-wsdl-first-service-unit (-)
431: remote -> org.apache.servicemix.tooling:servicemix-cxf-wsdl-first-osgi-bundle (-)
432: remote -> org.apache.servicemix.tooling:servicemix-drools-service-unit (-)
433: remote -> org.apache.servicemix.tooling:servicemix-eip-service-unit (-)
434: remote -> org.apache.servicemix.tooling:servicemix-embedded-simple (-)
435: remote -> org.apache.servicemix.tooling:servicemix-exec-service-unit (-)
436: remote -> org.apache.servicemix.tooling:servicemix-file-poller-service-unit (-)
437: remote -> org.apache.servicemix.tooling:servicemix-file-sender-service-unit (-)
438: remote -> org.apache.servicemix.tooling:servicemix-file-service-unit (-)
439: remote -> org.apache.servicemix.tooling:servicemix-ftp-poller-service-unit (-)
440: remote -> org.apache.servicemix.tooling:servicemix-ftp-sender-service-unit (-)
441: remote -> org.apache.servicemix.tooling:servicemix-ftp-service-unit (-)
442: remote -> org.apache.servicemix.tooling:servicemix-http-consumer-service-unit (-)
443: remote -> org.apache.servicemix.tooling:servicemix-http-provider-service-unit (-)
444: remote -> org.apache.servicemix.tooling:servicemix-http-service-unit (-)
445: remote -> org.apache.servicemix.tooling:servicemix-jms-consumer-service-unit (-)
446: remote -> org.apache.servicemix.tooling:servicemix-jms-provider-service-unit (-)
447: remote -> org.apache.servicemix.tooling:servicemix-jms-service-unit (-)
448: remote -> org.apache.servicemix.tooling:servicemix-jsr181-annotated-service-unit (-)
449: remote -> org.apache.servicemix.tooling:servicemix-jsr181-service-unit (-)
450: remote -> org.apache.servicemix.tooling:servicemix-jsr181-wsdl-first-service-unit (-)
451: remote -> org.apache.servicemix.tooling:servicemix-lwcontainer-service-unit (-)
452: remote -> org.apache.servicemix.tooling:servicemix-mail-service-unit (-)
453: remote -> org.apache.servicemix.tooling:servicemix-ode-service-unit (-)
454: remote -> org.apache.servicemix.tooling:servicemix-osgi-bundle (-)
455: remote -> org.apache.servicemix.tooling:servicemix-osworkflow-service-unit (-)
456: remote -> org.apache.servicemix.tooling:servicemix-project-root (-)
457: remote -> org.apache.servicemix.tooling:servicemix-quartz-service-unit (-)
458: remote -> org.apache.servicemix.tooling:servicemix-saxon-service-unit (-)
459: remote -> org.apache.servicemix.tooling:servicemix-saxon-xquery-service-unit (-)
460: remote -> org.apache.servicemix.tooling:servicemix-saxon-xslt-service-unit (-)
461: remote -> org.apache.servicemix.tooling:servicemix-script-service-unit (-)
462: remote -> org.apache.servicemix.tooling:servicemix-scripting-service-unit (-)
463: remote -> org.apache.servicemix.tooling:servicemix-service-assembly (-)
464: remote -> org.apache.servicemix.tooling:servicemix-service-engine (-)
465: remote -> org.apache.servicemix.tooling:servicemix-service-unit (-)
466: remote -> org.apache.servicemix.tooling:servicemix-shared-library (-)
467: remote -> org.apache.servicemix.tooling:servicemix-smpp-service-unit (-)
468: remote -> org.apache.servicemix.tooling:servicemix-snmp-service-unit (-)
469: remote -> org.apache.servicemix.tooling:servicemix-validation-service-unit (-)
470: remote -> org.apache.servicemix.tooling:servicemix-vfs-service-unit (-)
471: remote -> org.apache.servicemix.tooling:servicemix-xmpp-service-unit (-)
472: remote -> org.apache.shindig:sample-maven-archetype (Default server war dependencies)
473: remote -> org.apache.sling:sling-bundle-archetype (-)
474: remote -> org.apache.sling:sling-initial-content-archetype (Maven archetype for initial content)
475: remote -> org.apache.sling:sling-jcrinstall-bundle-archetype (-)
476: remote -> org.apache.sling:sling-launchpad-standalone-archetype (-)
477: remote -> org.apache.sling:sling-launchpad-webapp-archetype (-)
478: remote -> org.apache.sling:sling-servlet-archetype (Maven archetype for Sling Servlets)
479: remote -> org.apache.stanbol:enhancer-engine-archetype (-)
480: remote -> org.apache.stanbol:statefull-webmodule-archetype (Archetype for a project that accesses the entityhub, and logs queries to a persisten
graph)
481: remote -> org.apache.stanbol:stateless-webmodule-archetype (Archetype for a project that allows posting files and shows the computed enhancements
.)
482: remote -> org.apache.struts:struts2-archetype-angularjs (-)
483: remote -> org.apache.struts:struts2-archetype-blank (-)
484: remote -> org.apache.struts:struts2-archetype-convention (-)
485: remote -> org.apache.struts:struts2-archetype-dbportlet (-)
486: remote -> org.apache.struts:struts2-archetype-plugin (-)
487: remote -> org.apache.struts:struts2-archetype-portlet (-)
488: remote -> org.apache.struts:struts2-archetype-starter (-)
489: remote -> org.apache.synapse:synapse-package-archetype (This archetype can be used to create Maven projects that bundle a mediation
        into a standalone distribution ready to be executed)
490: remote -> org.apache.syncope:syncope-archetype (Apache Syncope Archetype)
491: remote -> org.apache.tapestry:quickstart (-)
492: remote -> org.apache.tapestry:tapestry-archetype (-)
493: remote -> org.apache.tapestry:tapestry-simple (Archetype for creating a basic Tapestry 5 application, including Eclipse control files.)
494: remote -> org.apache.tomcat.maven:tomcat-maven-archetype (-)
495: remote -> org.apache.turbine:turbine-webapp-2.3.3 (This archetype sets up a web application project based on Apache Turbine 2.3.3)
496: remote -> org.apache.turbine:turbine-webapp-4.0 (This archetype sets up a web application project based on Apache Turbine 4.0M1)
497: remote -> org.apache.tuscany.sca:tuscany-binding-archetype (Create a Tuscany binding extension project)
498: remote -> org.apache.tuscany.sca:tuscany-contribution-jar (Create an SCA JAR contribution project)
499: remote -> org.apache.tuscany.sca:tuscany-contribution-zip (Create an SCA ZIP contribution project)
500: remote -> org.apache.tuscany.sca:tuscany-policy-archetype (Create a Tuscany policy extension project)
501: remote -> org.apache.tuscany.sca:tuscany-quickstart (Create a simple Apache Tuscany SCA webapp project)
502: remote -> org.apache.tuscany.sca:tuscany-quickstart-bpel (Create an SCA Webapp project using BPEL)
503: remote -> org.apache.tuscany.sca:tuscany-quickstart-jsf (Create a Tuscany SCA and JSF project)
504: remote -> org.apache.tuscany.sca:tuscany-quickstart-jsonp (-)
505: remote -> org.apache.tuscany.sca:tuscany-quickstart-stripes (Create a simple Apache Tuscany SCA webapp project using the Stripes Web Framework)
506: remote -> org.apache.wicket:wicket-archetype-quickstart (-)
507: remote -> org.aperteworkflow:custom-widget-archetype (Aperte Workflow is a compilation of well-known, stable and mature frameworks into a
        complete BPM solution developed by BlueSoft sp. z o.o. - Polish independent software vendor.
        Project home page is available at http://www.aperteworkflow.org/)
508: remote -> org.apidesign.bck2brwsr:bck2brwsr-archetype-html-sample (Creates a skeletal HTML page and associated Java controller class.
      Runs in any browser (even without Java plugin) with the help of Bck2Brwsr
      virtual machine.)
509: remote -> org.apidesign.bck2brwsr:knockout4j-archetype (HTML page with Knockout.js bindings driven by application model
      written in Java. Use your favorite language to code. Use
      HTML as a lightweight rendering toolkit. Deploy using JavaFX or
      bck2brwsr virtual machine.)
510: remote -> org.apidesign.bck2brwsr:mojo (-)
511: remote -> org.apidesign.canvas:canvas-archetype (-)
512: remote -> org.apidesign.html:knockout4j-archetype (HTML page with Knockout.js bindings driven by application model
      written in Java. Use your favorite language to code. Use
      HTML as a lightweight rendering toolkit. Deploy using JavaFX and
      Java virtual machine.)
513: remote -> org.appfuse:appfuse-basic-jsf (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
514: remote -> org.appfuse:appfuse-basic-spring (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
515: remote -> org.appfuse:appfuse-basic-struts (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
516: remote -> org.appfuse:appfuse-basic-tapestry (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
517: remote -> org.appfuse:appfuse-core (Maven 2 archetype that creates a backend (Managers, DAOs and Web Services)
        application with AppFuse embedded in it.)
518: remote -> org.appfuse:appfuse-modular-jsf (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modu
les:
        "core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
        as AppFuse's JSF implementation.)
519: remote -> org.appfuse:appfuse-modular-spring (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two m
odules:
        "core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
        as AppFuse's Spring MVC implementation.)
520: remote -> org.appfuse:appfuse-modular-struts (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two m
odules:
        "core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
        as AppFuse's Struts implementation.)
521: remote -> org.appfuse:appfuse-modular-tapestry (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two
 modules:
        "core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
        as AppFuse's Tapestry implementation.)
522: remote -> org.appfuse.archetypes:appfuse-basic-jsf (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
523: remote -> org.appfuse.archetypes:appfuse-basic-jsf-archetype (AppFuse Archetype)
524: remote -> org.appfuse.archetypes:appfuse-basic-spring (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
525: remote -> org.appfuse.archetypes:appfuse-basic-spring-archetype (AppFuse Archetype)
526: remote -> org.appfuse.archetypes:appfuse-basic-struts (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
527: remote -> org.appfuse.archetypes:appfuse-basic-struts-archetype (AppFuse Archetype)
528: remote -> org.appfuse.archetypes:appfuse-basic-tapestry (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
529: remote -> org.appfuse.archetypes:appfuse-basic-tapestry-archetype (AppFuse Archetype)
530: remote -> org.appfuse.archetypes:appfuse-basic-wicket-archetype (AppFuse Archetype)
531: remote -> org.appfuse.archetypes:appfuse-core (Maven 2 archetype that creates a backend (Managers, DAOs and Web Services)
        application with AppFuse embedded in it.)
532: remote -> org.appfuse.archetypes:appfuse-core-archetype (-)
533: remote -> org.appfuse.archetypes:appfuse-light-jsf-archetype (AppFuse Archetype)
534: remote -> org.appfuse.archetypes:appfuse-light-spring-archetype (AppFuse Archetype)
535: remote -> org.appfuse.archetypes:appfuse-light-spring-freemarker-archetype (AppFuse Archetype)
536: remote -> org.appfuse.archetypes:appfuse-light-spring-security-archetype (AppFuse Archetype)
537: remote -> org.appfuse.archetypes:appfuse-light-stripes-archetype (AppFuse Archetype)
538: remote -> org.appfuse.archetypes:appfuse-light-struts-archetype (AppFuse Archetype)
539: remote -> org.appfuse.archetypes:appfuse-light-tapestry-archetype (AppFuse Archetype)
540: remote -> org.appfuse.archetypes:appfuse-light-wicket-archetype (AppFuse Archetype)
541: remote -> org.appfuse.archetypes:appfuse-modular-jsf (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creat
es two modules:
        "core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
        as AppFuse's JSF implementation.)
542: remote -> org.appfuse.archetypes:appfuse-modular-jsf-archetype (AppFuse Archetype)
543: remote -> org.appfuse.archetypes:appfuse-modular-spring (Maven 2 archetype that creates a modular web application with AppFuse. This archetype cr
eates two modules:
        "core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
        as AppFuse's Spring MVC implementation.)
544: remote -> org.appfuse.archetypes:appfuse-modular-spring-archetype (AppFuse Archetype)
545: remote -> org.appfuse.archetypes:appfuse-modular-struts (Maven 2 archetype that creates a modular web application with AppFuse. This archetype cr
eates two modules:
        "core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
        as AppFuse's Struts implementation.)
546: remote -> org.appfuse.archetypes:appfuse-modular-struts-archetype (AppFuse Archetype)
547: remote -> org.appfuse.archetypes:appfuse-modular-tapestry (Maven 2 archetype that creates a modular web application with AppFuse. This archetype
creates two modules:
        "core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
        as AppFuse's Tapestry implementation.)
548: remote -> org.appfuse.archetypes:appfuse-modular-tapestry-archetype (AppFuse Archetype)
549: remote -> org.appfuse.archetypes:appfuse-modular-wicket-archetype (AppFuse Archetype)
550: remote -> org.appfuse.archetypes:appfuse-ws-archetype (-)
551: remote -> org.appverse.web.framework.archetypes.gwt:appverse-web-archetypes-gwt (Appverse Web Framework Archetypes GWT Archetype)
552: remote -> org.appverse.web.framework.archetypes.gwtproject:appverse-web-archetypes-gwtproject (Appverse Web Framework Tools Archetypes GWT Projec
t)
553: remote -> org.appverse.web.framework.archetypes.jsf2:appverse-web-archetypes-jsf2 (Appverse Web Framework Archetypes JSF2 Archetype)
554: remote -> org.appverse.web.framework.tools.archetypes.gwtproject:appverse-web-tools-archetypes-gwtproject (Appverse Web Framework Tools Archetype
s GWT Project)
555: remote -> org.atteo.moonshine:service-archetype (-)
556: remote -> org.atteo.moonshine:standalone-archetype (-)
557: remote -> org.bitbucket.bradleysmithllc.etlunit:etlunit-database-schema-archetype (-)
558: remote -> org.bitbucket.bradleysmithllc.etlunit:etlunit-feature-archetype (-)
559: remote -> org.bitbucket.bradleysmithllc.etlunit:etlunit-project-archetype (-)
560: remote -> org.bitbucket.bradleysmithllc.etlunit:feature-archetype (-)
561: remote -> org.bitbucket.bradleysmithllc.etlunit:project-archetype (-)
562: remote -> org.blueoxygen.cimande:cimande-archetype (-)
563: remote -> org.blueoxygen.cimande:cimande-archetype-blank (-)
564: remote -> org.boretti.drools.integration:drools4-integration-helper-archetype (Support of the archetype for the Maven plugin)
565: remote -> org.boretti.drools.integration:drools5-integration-helper-archetype (This is an Maven 2 Archetype to support creation of a ready to
                use Maven 2 project with Drools support. This archetype contains
                examples of code based on interface, classes and pre/post
                condition. JUnit 4 examples are also included.)
566: remote -> org.brillien:brillien-archetype (-)
567: remote -> org.broadleafcommerce:ecommerce-archetype (BroadleafCommerce ECommerce Archetype)
568: remote -> org.chtijbug.drools:drools-service-runner-archetype (-)
569: remote -> org.codehaus.cargo:cargo-archetype-daemon (Sample Maven archetype showing how to configure Cargo and Maven to generate a webapp and rem
otely start and stop a container with the application deployed on it.)
570: remote -> org.codehaus.cargo:cargo-archetype-remote-deployment (Sample Maven archetype showing how to configure Cargo and Maven to generate a web
app and deploy it to a remote container.)
571: remote -> org.codehaus.cargo:cargo-archetype-webapp-functional-tests-module (Sample Maven archetype showing how to configure Cargo and Maven to r
un functional tests for a webapp by creating a separate functional-tests module.)
572: remote -> org.codehaus.cargo:cargo-archetype-webapp-single-module (Sample Maven archetype showing how to configure Cargo and Maven to run functio
nal tests directly from a single webapp module.)
573: remote -> org.codehaus.cargo:cargo-archetype-webapp-with-datasource (Sample Maven archetype showing how to configure Cargo and Maven to run funct
ional tests directly from a webapp with datasource. Cargo will be used to configure the datasource on the container.)
574: remote -> org.codehaus.castor:castor-archetype-codegen-testcase (Maven archetype of a JUnit test case for the Castor XML code generator)
575: remote -> org.codehaus.castor:codegen-testcase (-)
576: remote -> org.codehaus.castor:cpa-testcase (-)
577: remote -> org.codehaus.enunciate.archetypes:enunciate-simple-archetype (-)
578: remote -> org.codehaus.gmaven.archetypes:gmaven-archetype-basic (-)
579: remote -> org.codehaus.gmaven.archetypes:gmaven-archetype-mojo (-)
580: remote -> org.codehaus.groovy.maven.archetypes:gmaven-archetype-basic (-)
581: remote -> org.codehaus.groovy.maven.archetypes:gmaven-archetype-mojo (-)
582: remote -> org.codehaus.mevenide.plugins:maven-archetype-nbm (Archetype for Netbeans Modules Maven setup)
583: remote -> org.codehaus.mojo:gwt-maven-plugin (Maven plugin for the Google Web Toolkit.)
584: remote -> org.codehaus.mojo:javascript-ria-archetype (A JavaScript Rich Internet Application template using jQuery and jQuery UI.)
585: remote -> org.codehaus.mojo:latex-maven-archetype (-)
586: remote -> org.codehaus.mojo:xmlbeans-maven-plugin (Runs the xmlbeans parser/code generator against schemas in files and dependent jars.)
587: remote -> org.codehaus.mojo.archetypes:appclient-javaee6 (-)
588: remote -> org.codehaus.mojo.archetypes:appclient-javaee7 (Archetype for an Application Client package using Java EE 7.)
589: remote -> org.codehaus.mojo.archetypes:appclient-jee5 (-)
590: remote -> org.codehaus.mojo.archetypes:appframework (Archetype for creating application based on JSR 296)
591: remote -> org.codehaus.mojo.archetypes:ear-j2ee14 (-)
592: remote -> org.codehaus.mojo.archetypes:ear-javaee6 (-)
593: remote -> org.codehaus.mojo.archetypes:ear-javaee7 (Archetype for EAR package using Java EE 7)
594: remote -> org.codehaus.mojo.archetypes:ear-jee5 (-)
595: remote -> org.codehaus.mojo.archetypes:ejb-j2ee13 (-)
596: remote -> org.codehaus.mojo.archetypes:ejb-j2ee14 (-)
597: remote -> org.codehaus.mojo.archetypes:ejb-javaee6 (-)
598: remote -> org.codehaus.mojo.archetypes:ejb-javaee7 (Archetype for an EJB package using Java EE 7.)
599: remote -> org.codehaus.mojo.archetypes:ejb-jee5 (-)
600: remote -> org.codehaus.mojo.archetypes:javafx (Archetype for creating a JavaFX application)
601: remote -> org.codehaus.mojo.archetypes:nbm-archetype (Archetype for development of NetBeans modules in Maven.)
602: remote -> org.codehaus.mojo.archetypes:nbm-osgi-archetype (Archetype for development of NetBeans modules that can depend on OSGi bundles.)
603: remote -> org.codehaus.mojo.archetypes:nbm-suite-root (Root project archetype for creating multi module projects developing NetBeans IDE modules.
 Approximately similar in functionality to module suites in NetBeans Ant projects.)
604: remote -> org.codehaus.mojo.archetypes:netbeans-platform-app-archetype (Archetype for sample application based on NetBeans Platform. Creates pare
nt POM with branding and empty NBM project.)
605: remote -> org.codehaus.mojo.archetypes:osgi-archetype (Archetype for development of OSGi bundles using Apache Felix Maven plugin)
606: remote -> org.codehaus.mojo.archetypes:pom-root (Root project archetype for creating multi module projects)
607: remote -> org.codehaus.mojo.archetypes:sample-javafx (Sample archetype for creating a JavaFX application)
608: remote -> org.codehaus.mojo.archetypes:webapp-j2ee13 (-)
609: remote -> org.codehaus.mojo.archetypes:webapp-j2ee14 (-)
610: remote -> org.codehaus.mojo.archetypes:webapp-javaee6 (-)
611: remote -> org.codehaus.mojo.archetypes:webapp-javaee7 (Archetype for a web application using Java EE 7.)
612: remote -> org.codehaus.mojo.archetypes:webapp-jee5 (-)
613: remote -> org.codehaus.mojo.groovy:groovy-maven-archetype (An archetype for creating Maven modules/projects using the Groovy language.)
614: remote -> org.codehaus.mojo.groovy:groovy-mojo-archetype (An archetype for writing Maven 2 plugins in the Groovy language.)
615: remote -> org.codehaus.openxma:org.openxma.dsl.sample-archetype (-)
616: remote -> org.codehaus.sonar.archetypes:sonar-basic-plugin-archetype (Maven archetype to create a basic Sonar plugin)
617: remote -> org.codehaus.sonar.archetypes:sonar-gwt-plugin-archetype (Maven archetype to create a Sonar plugin including GWT pages)
618: remote -> org.codelibs:elasticsearch-plugin-archetype (This archetype generates your project for Elasticsearch plugin.)
619: remote -> org.cometd.archetypes:cometd-archetype-dojo-jetty6 (-)
620: remote -> org.cometd.archetypes:cometd-archetype-dojo-jetty7 (-)
621: remote -> org.cometd.archetypes:cometd-archetype-dojo-jetty8 (-)
622: remote -> org.cometd.archetypes:cometd-archetype-dojo-jetty9 (-)
623: remote -> org.cometd.archetypes:cometd-archetype-jquery-jetty6 (-)
624: remote -> org.cometd.archetypes:cometd-archetype-jquery-jetty7 (-)
625: remote -> org.cometd.archetypes:cometd-archetype-jquery-jetty8 (-)
626: remote -> org.cometd.archetypes:cometd-archetype-jquery-jetty9 (-)
627: remote -> org.cometd.archetypes:cometd-archetype-spring-dojo-jetty7 (-)
628: remote -> org.cometd.archetypes:cometd-archetype-spring-dojo-jetty9 (-)
629: remote -> org.cometd.archetypes:cometd-archetype-spring-jquery-jetty7 (-)
630: remote -> org.cometd.archetypes:cometd-archetype-spring-jquery-jetty9 (-)
631: remote -> org.conventionsframework:conventions-archetype (-)
632: remote -> org.coosproject.maven.archetypes:coos-plugin-actor (-)
633: remote -> org.coosproject.maven.archetypes:coos-plugin-api (-)
634: remote -> org.coosproject.maven.archetypes:coos-plugin-noapi (-)
635: remote -> org.cruxframework:crux-module-app (Crux application following the module layout for project.)
636: remote -> org.cruxframework:crux-module-app-archetype (This is the Crux Module App Archetype)
637: remote -> org.cruxframework:crux-module-app-container-archetype (This is the Crux Module Container App Archetype)
638: remote -> org.cruxframework:crux-module-container-app (Crux application following the module container layout for project.)
639: remote -> org.debux.webmotion:webmotion-archetype (WebMotion is Java web framework based on the Java EE6 standard)
640: remote -> org.devnull:devnull-web-archetype (DevNull starter webaapp with Spring MVC, JPA, Groovy and Twitter Bootstrap)
641: remote -> org.devoxx4kids.bukkit.plugins:bukkit-template (Bukkit Template Plugin)
642: remote -> org.dishevelled:dsh-archetype (dishevelled.org maven project archetype.)
643: remote -> org.drombler.fx:drombler-fx-maven-archetype-application (A sample Drombler FX application template.)
644: remote -> org.duelengine:duel-mvc-archetype (MVC project archetype using Jersey, Guice, DUEL views, DUEL merge)
645: remote -> org.duelengine:war-bootstrap-archetype (Simple WAR bootstrap for quick & dirty testing in multiple servlet containers (Tomcat, Jetty, G
lassfish).)
646: remote -> org.eclipse.hudson.tools:maven-hpi-plugin (Support for developing Hudson plugins with Apache Maven.)
647: remote -> org.eclipse.xtend:xtend-android-archetype (-)
648: remote -> org.eclipse.xtend:xtend-archetype (-)
649: remote -> org.eiichiro.gig:gig-archetype-appengine (An archetype which contains a simple Gig Webapp project for Google App Engine.)
650: remote -> org.eiichiro.gig:gig-archetype-heroku (An archetype which contains a simple Gig Webapp project for Heroku.)
651: remote -> org.eiichiro.gig:gig-archetype-webapp (An archetype which contains a simple Gig Webapp project.)
652: remote -> org.entando.entando:entando-archetype-bundle-content (Content Bundle Archetype for Entando.)
653: remote -> org.entando.entando:entando-archetype-bundle-misc (Generic Misc Bundle Archetype for Entando.)
654: remote -> org.entando.entando:entando-archetype-bundle-page-generic (Generic Page Bundle Archetype for Entando.)
655: remote -> org.entando.entando:entando-archetype-bundle-showlet-generic (Generic Showlet Bundle Archetype for Entando.)
656: remote -> org.entando.entando:entando-archetype-bundle-widget-generic (Generic Widget Bundle Archetype for Entando.)
657: remote -> org.entando.entando:entando-archetype-plugin-generic (Generic Plugin Archetype for Entando:  an agile, modern and user-centric open sou
rce portal-like platform.)
658: remote -> org.entando.entando:entando-archetype-portal-bootstrap (Twitter Bootstrap Portal Archetype for Entando: an agile, modern and user-centr
ic open source portal-like platform.)
659: remote -> org.entando.entando:entando-archetype-portal-generic (Generic Portal Archetype for Entando: an agile, modern and user-centric open sour
ce portal-like platform.)
660: remote -> org.fluttercode.knappsack:jee6-basic-archetype (-)
661: remote -> org.fluttercode.knappsack:jee6-minimal-archetype (-)
662: remote -> org.fluttercode.knappsack:jee6-sandbox-archetype (-)
663: remote -> org.fluttercode.knappsack:jee6-sandbox-demo-archetype (-)
664: remote -> org.fluttercode.knappsack:jee6-servlet-basic-archetype (-)
665: remote -> org.fluttercode.knappsack:jee6-servlet-demo-archetype (-)
666: remote -> org.fluttercode.knappsack:jee6-servlet-minimal-archetype (-)
667: remote -> org.fluttercode.knappsack:jee6-servlet-sandbox-archetype (-)
668: remote -> org.fluttercode.knappsack:spring-jsf-jpa-archetype (-)
669: remote -> org.fluttercode.knappsack:spring-mvc-jpa-archetype (-)
670: remote -> org.fluttercode.knappsack:spring-mvc-jpa-demo-archetype (-)
671: remote -> org.fuin.archetypes:emt-xtext-archetype (Maven archetype that creates an Xtext project with a multi module Maven layout and Tycho (mani
fest-first approach).)
672: remote -> org.fusesource.fabric:camel-cxf-code-first-archetype (Creates a new Camel project using CXF in code (Java) first.)
673: remote -> org.fusesource.fabric:camel-cxf-contract-first-archetype (Creates a new Camel project using CXF in contract (WSDL) first.)
674: remote -> org.fusesource.fabric:camel-drools-archetype (Creates a new Camel project using the Drools rule engine.)
675: remote -> org.fusesource.scalate.tooling:scalate-archetype-empty (An archetype which creates an empty Scalate web application)
676: remote -> org.fusesource.scalate.tooling:scalate-archetype-guice (An archetype which creates an empty Scalate Guice web application)
677: remote -> org.fusesource.scalate.tooling:scalate-archetype-guice_2.10 (An archetype which creates an empty Scalate Guice web application)
678: remote -> org.fusesource.scalate.tooling:scalate-archetype-guice_2.9 (An archetype which creates an empty Scalate Guice web application)
679: remote -> org.fusesource.scalate.tooling:scalate-archetype-jersey (An archetype which creates an empty Scalate web application)
680: remote -> org.fusesource.scalate.tooling:scalate-archetype-jersey_2.10 (An archetype which creates an empty Scalate web application)
681: remote -> org.fusesource.scalate.tooling:scalate-archetype-jersey_2.9 (An archetype which creates an empty Scalate web application)
682: remote -> org.fusesource.scalate.tooling:scalate-archetype-sitegen (An archetype which creates an empty Scalate static website generation project
)
683: remote -> org.fusesource.scalate.tooling:scalate-archetype-sitegen_2.10 (An archetype which creates an empty Scalate static website generation pr
oject)
684: remote -> org.fusesource.scalate.tooling:scalate-archetype-sitegen_2.9 (An archetype which creates an empty Scalate static website generation pro
ject)
685: remote -> org.geomajas:geomajas-gwt-archetype (Geomajas GWT application archetype)
686: remote -> org.geomajas:geomajas-plugin-archetype (-)
687: remote -> org.geoserver.maven:geoserver-archetype-wfsoutputformat (-)
688: remote -> org.glassfish.jersey.archetypes:jersey-heroku-webapp (An archetype which contains a quick start Jersey-based web application project ca
pable to run on Heroku.)
689: remote -> org.glassfish.jersey.archetypes:jersey-quickstart-grizzly2 (An archetype which contains a quick start Jersey project based on Grizzly c
ontainer.)
690: remote -> org.glassfish.jersey.archetypes:jersey-quickstart-webapp (An archetype which contains a quick start Jersey-based web application projec
t.)
691: remote -> org.glassfish.tyrus.archetypes:tyrus-archetype-echo (An archetype which contains a Tyrus echo application.)
692: remote -> org.glassmaker:org.glassmaker.archetype.basic (-)
693: remote -> org.grails:grails-maven-archetype (Maven archetype for Grails projects.)
694: remote -> org.graniteds.archetypes:graniteds-flex-spring-jpa-hibernate (Base project with Flex 4.6, Spring 3 and Hibernate using GraniteDS with R
emoteObject API.)
695: remote -> org.graniteds.archetypes:graniteds-spring-jpa-hibernate (Base project with Flex 4.5, Spring 3 and Hibernate using GraniteDS with Remote
Object API.)
696: remote -> org.graniteds.archetypes:graniteds-tide-cdi-jpa (Base project with Flex 4.5 and CDI using GraniteDS with the Tide API.)
697: remote -> org.graniteds.archetypes:graniteds-tide-flex-cdi-jpa (Base project with Flex 4.6, CDI and JPA using GraniteDS with Tide API.)
698: remote -> org.graniteds.archetypes:graniteds-tide-flex-seam-jpa-hibernate (Base project with Flex 4.6, JBoss Seam 2.2 and Hibernate using Granite
DS with the Tide API.)
699: remote -> org.graniteds.archetypes:graniteds-tide-flex-spring-jpa-hibernate (Base project with Flex 4.6, Spring 3.1 and Hibernate 3.6 using Grani
teDS with the Tide API.)
700: remote -> org.graniteds.archetypes:graniteds-tide-javafx-spring-jpa-hibernate (Base project with JavaFX 2.2, Spring 3.1 and Hibernate 3.6 using G
raniteDS with the Tide API.)
701: remote -> org.graniteds.archetypes:graniteds-tide-seam-jpa-hibernate (Base project with Flex 4.5, JBoss Seam 2.2 and Hibernate using GraniteDS wi
th the Tide API.)
702: remote -> org.graniteds.archetypes:graniteds-tide-spring-jpa-hibernate (Base project with Flex 4.5, Spring 3 and Hibernate using GraniteDS with t
he Tide API.)
703: remote -> org.grouplens.lenskit:lenskit-archetype-fancy-analysis (-)
704: remote -> org.grouplens.lenskit:lenskit-archetype-simple-analysis (-)
705: remote -> org.hibernate:hibernate-search-quickstart (-)
706: remote -> org.hibernate:hibernate-validator-quickstart-archetype (Aggregator of the Hibernate Validator modules.)
707: remote -> org.imixs.application:imixs-workflow-jee-archetype (Imixs Workflow JEE Archetype provides a JEE Sample Application)
708: remote -> org.jasig.portlet.archetype:jsr286-archetype (-)
709: remote -> org.jbehave:jbehave-groovy-archetype (An archetype to run multiple textual stories with steps classes written in Groovy.)
710: remote -> org.jbehave:jbehave-guice-archetype (An archetype to run multiple textual stories configured programmatically but with steps classes co
mposed using Guice.)
711: remote -> org.jbehave:jbehave-needle-archetype (An archetype to run multiple textual stories configured programmatically but with steps classes c
omposed using Needle.)
712: remote -> org.jbehave:jbehave-pico-archetype (An archetype to run multiple textual stories configured programmatically but with steps classes com
posed using Pico.)
713: remote -> org.jbehave:jbehave-simple-archetype (An archetype to run multiple textual stories configured programmatically.)
714: remote -> org.jbehave:jbehave-spring-archetype (An archetype to run multiple textual stories configured programmatically but with steps classes c
omposed using Spring.)
715: remote -> org.jbehave.web:jbehave-web-selenium-flash-archetype (An archetype to run web Flash stories using Selenium.)
716: remote -> org.jbehave.web:jbehave-web-selenium-groovy-pico-archetype (An archetype to run web stories using Selenium, Groovy and Pico.)
717: remote -> org.jbehave.web:jbehave-web-selenium-java-spring-archetype (An archetype to run web stories using Selenium, Java and Spring.)
718: remote -> org.jboss.aerogear.archetypes:jboss-html5-mobile-archetype (An archetype that generates a Java EE 6 application using HTML5, and JAX-RS
 to support both desktop and mobile web browsers)
719: remote -> org.jboss.aerogear.archetypes:jboss-html5-mobile-blank-archetype (An archetype that generates a Java EE 6 application using HTML5, and
JAX-RS to support both desktop and mobile web browsers)
720: remote -> org.jboss.archetype.wfk:jboss-html5-mobile-archetype (An archetype that generates a Java EE 6 application using HTML5, and JAX-RS to su
pport both desktop and mobile web browsers)
721: remote -> org.jboss.archetype.wfk:jboss-html5-mobile-blank-archetype (An archetype that generates a Java EE 6 application using HTML5, and JAX-RS
 to support both desktop and mobile web browsers)
722: remote -> org.jboss.archetype.wfk:jboss-spring-mvc-archetype (An archetype that generates a starter Spring MVC application with Java EE persisten
ce settings (server bootstrapped JPA, JTA transaction management) for JBoss AS7)
723: remote -> org.jboss.archetype.wfk:richfaces-archetype-kitchensink (JBoss WFK Archetype: Based on the kitchensink quickstart but adds RichFaces)
724: remote -> org.jboss.archetype.wfk:richfaces-archetype-simpleapp (JBoss WFK Archetype: RichFaces Archetypes Simple Application)
725: remote -> org.jboss.as.archetypes:jboss-as-subsystem (An archetype that generates a skeleton project for implementing a JBoss AS 7 subsystem)
726: remote -> org.jboss.errai.archetypes:bus-quickstart (-)
727: remote -> org.jboss.errai.archetypes:cdi-quickstart (-)
728: remote -> org.jboss.errai.archetypes:cordova-quickstart (-)
729: remote -> org.jboss.errai.archetypes:jaxrs-quickstart (-)
730: remote -> org.jboss.errai.archetypes:jboss-errai-kitchensink-archetype (A starter Errai + Java EE 6 webapp project for use on JBoss AS 7 / EAP 6,
 generated from the jboss-errai-kitchensink-archetype archetype)
731: remote -> org.jboss.errai.archetypes:kitchensink-quickstart (A starter Errai + Java EE 6 webapp project for use on JBoss AS 7 / EAP 6, generated
from the kitchensink-quickstart archetype)
732: remote -> org.jboss.maven.archetypes:selenium-testng (-)
733: remote -> org.jboss.portletbridge.archetypes:1.2-basic (-)
734: remote -> org.jboss.portletbridge.archetypes:2.0-basic (-)
735: remote -> org.jboss.portletbridge.archetypes:2.0-basic-archetype (-)
736: remote -> org.jboss.portletbridge.archetypes:jsf2-basic-archetype (-)
737: remote -> org.jboss.portletbridge.archetypes:richfaces-basic (-)
738: remote -> org.jboss.portletbridge.archetypes:richfaces-simpleapp-archetype (-)
739: remote -> org.jboss.portletbridge.archetypes:seam-basic (-)
740: remote -> org.jboss.spec.archetypes:jboss-html5-mobile-archetype (An archetype that generates a Java EE 6 application using HTML5, and JAX-RS to
support both desktop and mobile web browsers)
741: remote -> org.jboss.spec.archetypes:jboss-javaee6-ear-webapp (An archetype that generates a starter Java EE 6 webapp project for JBoss AS 7. The
project is an EAR, with an EJB-JAR and WAR)
742: remote -> org.jboss.spec.archetypes:jboss-javaee6-webapp (An archetype that generates a starter Java EE 6 webapp project for JBoss AS 7)
743: remote -> org.jboss.spec.archetypes:jboss-javaee6-webapp-archetype (An archetype that generates a starter Java EE 6 webapp project for JBoss AS 7
.1 (by default) or EAP 6 (if the "enterprise" property is true))
744: remote -> org.jboss.spec.archetypes:jboss-javaee6-webapp-archetype-blank (An archetype that generates a starter Java EE 6 webapp project for JBos
s AS 7 (by default) or EAP 6 (if the "enterprise" property is true))
745: remote -> org.jboss.spec.archetypes:jboss-javaee6-webapp-blank-archetype (An archetype that generates a starter Java EE 6 webapp project for JBos
s AS 7.1 (by default) or EAP 6 (if the "enterprise" property is true))
746: remote -> org.jboss.spec.archetypes:jboss-javaee6-webapp-ear-archetype (An archetype that generates a starter Java EE 6 webapp project for JBoss
AS 7.1 (by default) or EAP 6 (if the "enterprise" property is true). The project is an EAR, with an EJB-JAR and WAR)
747: remote -> org.jboss.spec.archetypes:jboss-javaee6-webapp-ear-archetype-blank (An archetype that generates a starter Java EE 6 webapp project for
JBoss AS 7 (by default) or EAP 6 (if the "enterprise" property is true). The project is an EAR, with an EJB-JAR and WAR)
748: remote -> org.jboss.spec.archetypes:jboss-javaee6-webapp-ear-blank-archetype (An archetype that generates a starter Java EE 6 webapp project for
JBoss AS 7.1 (by default) or EAP 6 (if the "enterprise" property is true). The project is an EAR, with an EJB-JAR and WAR)
749: remote -> org.jboss.spring.archetypes:jboss-spring-mvc-archetype (An archetype that generates a starter Spring MVC application with Java EE persi
stence settings (server bootstrapped JPA, JTA transaction management) for JBoss AS7)
750: remote -> org.jboss.spring.archetypes:spring-mvc-webapp (An archetype that generates a starter Spring MVC application with Java EE persistence se
ttings (server bootstrapped JPA, JTA transaction management) for JBoss AS7)
751: remote -> org.jboss.weld.archetypes:jboss-javaee6-webapp (-)
752: remote -> org.jboss.weld.archetypes:jboss-jsf-weld-servlet-webapp (-)
753: remote -> org.jboss.weld.archetypes:weld-jsf-jee (Weld archetype for creating a Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1 and JPA 2.0
 (persistence unit included))
754: remote -> org.jboss.weld.archetypes:weld-jsf-jee-minimal (Weld archetype for creating a minimal Java EE 6 application using JSF 2.0, CDI 1.0 and
EJB 3.1 (persistence unit not included))
755: remote -> org.jboss.weld.archetypes:weld-jsf-servlet-minimal (Weld archetype for creating an application using JSF 2.0 and CDI 1.0 for Servlet Co
ntainers (Tomcat 6 / Jetty 6))
756: remote -> org.jboss.ws.plugins.archetypes:jaxws-codefirst (Creates a project for developing a Web Service starting from Java code and using JBoss
WS)
757: remote -> org.jbpm:jbpm-console-ng-module-archetype (jBPM Console NG Module Archetype)
758: remote -> org.jbundle.app.tools:jbundle-project-archetype (jbundle project archetype)
759: remote -> org.jbundle.config:org.jbundle.config.archetype (-)
760: remote -> org.jbundle.util.webapp:jbundle-util-webapp-cgi-archetype (-)
761: remote -> org.jbundle.util.webapp:jbundle-util-webapp-files-archetype (-)
762: remote -> org.jbundle.util.webapp:jbundle-util-webapp-proxy-archetype (-)
763: remote -> org.jbundle.util.webapp:jbundle-util-webapp-redirect-archetype (-)
764: remote -> org.jbundle.util.webapp:jbundle-util-webapp-upload-archetype (-)
765: remote -> org.jbundle.util.webapp:jbundle-util-webapp-webdav-archetype (-)
766: remote -> org.jbundle.util.webapp:jbundle-util-webapp-website-archetype (-)
767: remote -> org.jbundle.util.webapp:jbundle-util-webapp-webstart-archetype (-)
768: remote -> org.jbundle.util.webapp:jbundle-util-webapp-webstart-reactor-archetype (-)
769: remote -> org.jbundle.util.webapp:org.jbundle.util.webapp.cgi-archetype (-)
770: remote -> org.jbundle.util.webapp:org.jbundle.util.webapp.files-archetype (-)
771: remote -> org.jbundle.util.webapp:org.jbundle.util.webapp.proxy-archetype (-)
772: remote -> org.jbundle.util.webapp:org.jbundle.util.webapp.redirect-archetype (-)
773: remote -> org.jbundle.util.webapp:org.jbundle.util.webapp.upload-archetype (-)
774: remote -> org.jbundle.util.webapp:org.jbundle.util.webapp.webdav-archetype (-)
775: remote -> org.jbundle.util.webapp:org.jbundle.util.webapp.website-archetype (-)
776: remote -> org.jclouds:jclouds-compute-service-archetype (Maven archetype for a provider of a Compute service)
777: remote -> org.jclouds:jclouds-rest-client-archetype (Maven archetype for a provider of a rest-speaking service)
778: remote -> org.jibx.ota.osgi:jibx-ota-osgi-archetype (-)
779: remote -> org.jibx.schema.config:opentravel-ws-archetype (-)
780: remote -> org.jibx.schema.org.opentravel._2010B:opentravel-archetype (-)
781: remote -> org.jibx.schema.org.opentravel._2011A:opentravel-archetype (-)
782: remote -> org.jibx.schema.org.opentravel._2011B:opentravel-archetype (-)
783: remote -> org.jibx.schema.org.opentravel._2011B.ws:opentravel-touractivity-ws-archetype (-)
784: remote -> org.jibx.schema.org.opentravel._2011B.ws:opentravel-touractivity-ws-service-archetype (-)
785: remote -> org.jibx.schema.org.opentravel._2012A:opentravel-archetype (-)
786: remote -> org.jibx.schema.org.opentravel._2012A.ws:opentravel-touractivity-ws-service-archetype (-)
787: remote -> org.jibx.schema.org.opentravel._2012B:opentravel-archetype (-)
788: remote -> org.jibx.schema.org.opentravel._2012B.ws:opentravel-touractivity-ws-service-archetype (-)
789: remote -> org.jibx.schema.org.opentravel._2013A:opentravel-archetype (-)
790: remote -> org.jibx.schema.org.opentravel._2013A.ws:opentravel-touractivity-ws-service-archetype (-)
791: remote -> org.jibx.schema.org.opentravel._2013B:opentravel-archetype (-)
792: remote -> org.jibx.schema.org.opentravel._2013B.ws:opentravel-touractivity-ws-service-archetype (-)
793: remote -> org.jini.maven-jini-plugin:jini-service-archetype (Archetype for Jini service project creation)
794: remote -> org.jnario:jnario-archetype (Maven archetype for setting up a jnario project.)
795: remote -> org.jrebirth.af:archetype (JRebirth Archetype used to build a new fresh application)
796: remote -> org.juzu:juzu-archetype (-)
797: remote -> org.jvnet.hudson.tools:maven-hpi-plugin (Support for developing Hudson plugins with Apache Maven.)
798: remote -> org.kuali.rice:rice-archetype-quickstart (This is a archetype which creates a Kuali Rice based application. It uses a basic project str
ucture demonstrating war overlays, service implementation, unit and integration testing.  It is configured in a bundled integration model with Kuali R
ice.)
799: remote -> org.kualigan.maven.archetypes:kc-archetype (-)
800: remote -> org.kualigan.maven.archetypes:kfs-archetype (-)
801: remote -> org.kualigan.maven.archetypes:kfs3-archetype (-)
802: remote -> org.kualigan.maven.archetypes:kfs4-archetype (-)
803: remote -> org.kualigan.maven.archetypes:kr-archetype (-)
804: remote -> org.kualigan.maven.archetypes:lb-copy-archetype (Archetype used when copying databases. Creates a database project for the lb-maven-pro
ject to use in copying/exporting a database)
805: remote -> org.makumba:makumba-archetype (Archetype for a makumba web-application)
806: remote -> org.meruvian.midas:midas-archetype-blank (Generates blank Midas project template)
807: remote -> org.meruvian.yama:yama-archetype (-)
808: remote -> org.meruvian.yama:yama-jaxrs-archetype (-)
809: remote -> org.meruvian.yama:yama-struts-archetype (-)
810: remote -> org.mixer2:mixer2-springmvc-archetype (archetype for SpringMVC web application with mixer2)
811: remote -> org.mobicents.servlet.sip.archetypes:maven-archetype-sipapp (Archetype providing a default layout to start building SIP Servlets Applic
ations.)
812: remote -> org.mobicents.servlet.sip.archetypes:mss-testing-embeddedTomcat6-archetype (-)
813: remote -> org.mobicents.servlet.sip.archetypes:mss-testing-embeddedTomcat7-archetype (-)
814: remote -> org.mortbay.jetty.archetype:jetty-archetype-assembler (-)
815: remote -> org.mortbay.jetty.archetype:jetty-archetype-fileserver (-)
816: remote -> org.mule.ibeans:ibean-archetype (An archetype for creating an empty ibean maven project)
817: remote -> org.mule.tools:ibean-archetype (-)
818: remote -> org.mule.tools:mule-catalog-archetype (-)
819: remote -> org.mule.tools:mule-cloud-connector-archetype (-)
820: remote -> org.mule.tools:mule-example-archetype (An archetype for creating a Mule example application.)
821: remote -> org.mule.tools:mule-module-archetype (An architype for creating a Mule Module. It provides options for adding certain mule features and
 configuring the
    module for Muleforge.)
822: remote -> org.mule.tools:mule-project-archetype (An architype for creating Mule applications.)
823: remote -> org.mule.tools:mule-transport-archetype (Archetype for Mule 2.0 and above transport projects.)
824: remote -> org.multiverse:multiverse-project-archetype (Skeleton for a project using Multiverse)
825: remote -> org.nakedobjects:application-archetype (-)
826: remote -> org.nakedobjects:remoting-support (-)
827: remote -> org.nakedobjects.archetypes:application (-)
828: remote -> org.nakedobjects.plugins:hibernate-support (-)
829: remote -> org.nakedobjects.plugins:html-war (-)
830: remote -> org.nakedobjects.plugins:htmlviewer-war (-)
831: remote -> org.nakedobjects.prototyping:application (-)
832: remote -> org.nakedobjects.prototyping:icons (-)
833: remote -> org.nakedosgi:bundle-archetype (-)
834: remote -> org.ninjaframework:ninja-appengine-blog-archetype (Sonatype helps open source projects to set up Maven repositories on https://oss.sona
type.org/)
835: remote -> org.ninjaframework:ninja-core-demo-archetype (-)
836: remote -> org.ninjaframework:ninja-jpa-demo-archetype (-)
837: remote -> org.ninjaframework:ninja-servlet-archetype-simple (-)
838: remote -> org.ninjaframework:ninja-servlet-jpa-blog-archetype (-)
839: remote -> org.ninjaframework:ninja-servlet-jpa-blog-integration-test-archetype (-)
840: remote -> org.objectweb.fractal.cecilia:maven-archetype-cecilia-app (This archetype is useful to quick start Cecilia applications,
                having a source tree template already filled.)
841: remote -> org.objectweb.fractal.cecilia:maven-archetype-cecilia-application (This archetype is useful to quick start Cecilia applications, having
 a
                source tree template already filled.)
842: remote -> org.objectweb.fractal.cecilia:maven-archetype-cecilia-library (This archetype is useful to quick start Cecilia components library
                projects, having a source tree template already filled.)
843: remote -> org.objectweb.petals:maven-archetype-petals-jbi-binding-component (>This project is Maven 2 archetype associated to a JBI binding compo
nent project.)
844: remote -> org.objectweb.petals:maven-archetype-petals-jbi-service-assembly (This project is Maven 2 archetype associated to a JBI service assembl
y project.)
845: remote -> org.objectweb.petals:maven-archetype-petals-jbi-service-engine (This project is Maven 2 archetype associated to a JBI service engine pr
oject.)
846: remote -> org.objectweb.petals:maven-archetype-petals-jbi-service-unit (This project is Maven 2 archetype associated to a JBI service unit projec
t.)
847: remote -> org.opencoweb:admin-archetype (-)
848: remote -> org.opencoweb:coweb-archetype (-)
849: remote -> org.openengsb.tooling.archetypes:openengsb-tooling-archetypes-connector (Archetype to produce new Connector project)
850: remote -> org.openengsb.tooling.archetypes:openengsb-tooling-archetypes-domain (Archetype to produce new Domain project)
851: remote -> org.openengsb.tooling.archetypes:org.openengsb.tooling.archetypes.connector (Archetype to produce new Connector project)
852: remote -> org.openengsb.tooling.archetypes:org.openengsb.tooling.archetypes.domain (Archetype to produce new Domain project)
853: remote -> org.openengsb.tooling.archetypes.clientproject:org.openengsb.tooling.archetypes.clientproject.root (Archetype to produce new client pro
ject)
854: remote -> org.openjdk.jmh:jmh-groovy-benchmark-archetype (Generates Groovy benchmarking project, uses JMH bytecode processors)
855: remote -> org.openjdk.jmh:jmh-java-benchmark-archetype (Generates Java benchmarking project, uses JMH annotation processors)
856: remote -> org.openjdk.jmh:jmh-kotlin-benchmark-archetype (Generates Kotlin benchmarking project, uses JMH bytecode processors)
857: remote -> org.openjdk.jmh:jmh-scala-benchmark-archetype (Generates Scala benchmarking project, uses JMH bytecode processors)
858: remote -> org.openjdk.jmh:jmh-simple-benchmark-archetype (Basic archetype for simple JMH-driven benchmark.)
859: remote -> org.openl.rules:openl-simple-project (-)
860: remote -> org.openl.rules:openl-simple-project-archetype (-)
861: remote -> org.ops4j.pax.construct:maven-archetype-osgi-bundle (-)
862: remote -> org.ops4j.pax.construct:maven-archetype-osgi-project (-)
863: remote -> org.ops4j.pax.construct:maven-archetype-osgi-service (-)
864: remote -> org.ops4j.pax.construct:maven-archetype-osgi-wrapper (-)
865: remote -> org.ops4j.pax.construct:maven-archetype-spring-bean (-)
866: remote -> org.ops4j.pax.exam:maven-archetype-paxexam-junit ()
867: remote -> org.ops4j.pax.web.archetypes:wab-archetype (-)
868: remote -> org.ops4j.pax.web.archetypes:wab-gwt-archetype (-)
869: remote -> org.ops4j.pax.web.archetypes:war-archetype (-)
870: remote -> org.ow2.jasmine.kerneos:kerneos-module-archetype (-)
871: remote -> org.ow2.jasmine.kerneos:kerneos-war-archetype (-)
872: remote -> org.ow2.jasmine.probe:jprobe-collector-archetype (-)
873: remote -> org.ow2.jasmine.probe:jprobe-outer-archetype (-)
874: remote -> org.ow2.jonas.camel:camel-archetype-simple-route (-)
875: remote -> org.ow2.kerneos:kerneos-application-archetype (-)
876: remote -> org.ow2.kerneos:kerneos-flex-archetypes-application (-)
877: remote -> org.ow2.kerneos:kerneos-flex-archetypes-module (-)
878: remote -> org.ow2.kerneos:kerneos-flex-archetypes-module-fragment (-)
879: remote -> org.ow2.kerneos:kerneos-module-archetype (-)
880: remote -> org.ow2.orchestra:orchestra-extension-archetype (Generates extensions for Orchestra)
881: remote -> org.ow2.petals:maven-archetype-petals-jbi-binding-component (This project is Maven 2 archetype associated to a JBI binding component pr
oject.)
882: remote -> org.ow2.petals:maven-archetype-petals-jbi-service-assembly (This project is Maven 2 archetype associated to a JBI service assembly proj
ect.)
883: remote -> org.ow2.petals:maven-archetype-petals-jbi-service-engine (This project is Maven 2 archetype associated to a JBI service engine project.
)
884: remote -> org.ow2.petals:maven-archetype-petals-jbi-service-unit (This project is Maven 2 archetype associated to a JBI service unit project.)
885: remote -> org.ow2.petals:maven-archetype-petals-jbi-shared-library (This project is Maven 2 archetype associated to a JBI Shared Library project.
)
886: remote -> org.ow2.shelbie:shelbie-command-archetype (-)
887: remote -> org.ow2.weblab.tools.maven:weblab-archetype-analyser (The Archetype used to generate a stub for analyser. This should be called through
 the weblab-archetype-plugin and not directly.)
888: remote -> org.ow2.weblab.tools.maven:weblab-archetype-configurable (The Archetype used to generate a stub for configurable. This should be called
 through the weblab-archetype-plugin and not directly.)
889: remote -> org.ow2.weblab.tools.maven:weblab-archetype-indexer (The Archetype used to generate a stub for indexer. This should be called through t
he weblab-archetype-plugin and not directly.)
890: remote -> org.ow2.weblab.tools.maven:weblab-archetype-queuemanager (The Archetype used to generate a stub for queuemanager. This should be called
 through the weblab-archetype-plugin and not directly.)
891: remote -> org.ow2.weblab.tools.maven:weblab-archetype-reportprovider (The Archetype used to generate a stub for reportprovider. This should be ca
lled through the weblab-archetype-plugin and not directly.)
892: remote -> org.ow2.weblab.tools.maven:weblab-archetype-resourcecontainer (The Archetype used to generate a stub for resourcecontainer. This should
 be called through the weblab-archetype-plugin and not directly.)
893: remote -> org.ow2.weblab.tools.maven:weblab-archetype-resources (The Archetype used to generate a stub for any WebLab service. It should be used
in conjunction with interfaces specific archetypes. This should be called through the weblab-archetype-plugin and not directly.)
894: remote -> org.ow2.weblab.tools.maven:weblab-archetype-searcher (The Archetype used to generate a stub for searcher. This should be called through
 the weblab-archetype-plugin and not directly.)
895: remote -> org.ow2.weblab.tools.maven:weblab-archetype-sourcereader (The Archetype used to generate a stub for sourcereader. This should be called
 through the weblab-archetype-plugin and not directly.)
896: remote -> org.ow2.weblab.tools.maven:weblab-archetype-trainable (The Archetype used to generate a stub for trainable. This should be called throu
gh the weblab-archetype-plugin and not directly.)
897: remote -> org.parallelj:parallelj-archetype (ParallelJ is a Java framework for parallel computing. It provides flow modeling and execution. This
archetype projects allows to create a project skeleton using ParallelJ.)
898: remote -> org.parallelj:parallelj-archetype-web (ParallelJ is a Java framework for parallel computing. It provides flow modeling and execution. T
his archetype projects allows to create a project skeleton using ParallelJ.)
899: remote -> org.parancoe:parancoe-pluginarchetype (-)
900: remote -> org.parancoe:parancoe-webarchetype (-)
901: remote -> org.patterntesting:patterntesting-tools (PatternTesting Tools (patterntesting-tools) is the container for
    tools around PatternTesting like the Ant extensions and Maven plugin.)
902: remote -> org.pustefixframework:pustefix-archetype-application (Pustefix Archetype for Applications)
903: remote -> org.pustefixframework:pustefix-archetype-basic (Pustefix archetype creating a basic application)
904: remote -> org.pustefixframework.maven.archetypes:pustefix-archetype-module (Pustefix Archetype for Modules)
905: remote -> org.qianalyze:QiAnalyzeModule-Archetype (The archetype to create a new QiAnalyze Module for more information visit http://java.net/proj
ects/qianalyze)
906: remote -> org.qianalyze.sample:QiAnalyzeModule (The archetype to create a new QiAnalyze Module for more information visit http://java.net/project
s/qianalyze)
907: remote -> org.qooxdoo:qooxdoo-archetype-desktop (An archetype to create a qooxdoo application)
908: remote -> org.qooxdoo:qooxdoo-archetype-gui (An archetype to create a qooxdoo application)
909: remote -> org.quattor.maven:cfg-module (-)
910: remote -> org.quattor.pan:panc-maven-archetype (-)
911: remote -> org.rauschig:maven-archetype-bundle (A maven archetype that incorporates common artifacts for OSS development and OSGi compatibility)
912: remote -> org.resthub:resthub-jpa-backbonejs-archetype (-)
913: remote -> org.resthub:resthub-jpa-backbonejs-multi-archetype (-)
914: remote -> org.resthub:resthub-mongodb-backbonejs-archetype (-)
915: remote -> org.resthub:resthub-mongodb-backbonejs-multi-archetype (-)
916: remote -> org.rhq:rhq-plugin-archetype (-)
917: remote -> org.rhq.maven:smartgwt-war-archetype (archetype for a Maven project for a SmartGWT web application (WAR))
918: remote -> org.richfaces.archetypes:richfaces-archetype-kitchensink (A starter Java EE 6 webapp project for use on JBoss AS 7 / EAP 6, generated f
rom the
        jboss-javaee6-webapp archetype)
919: remote -> org.richfaces.archetypes:richfaces-archetype-simpleapp (-)
920: remote -> org.sadiframework:sadi-service-archetype (-)
921: remote -> org.scala-tools.archetypes:liftweb-archetype-blank (Archetype - blank project for liwftweb)
922: remote -> org.scala-tools.archetypes:liftweb-archetype-hellolift (Archetype - hellolift sample liwftweb application)
923: remote -> org.scala-tools.archetypes:scala-archetype-simple (The maven-scala-plugin is used for compiling/testing/running/documenting scala code
in maven.)
924: remote -> org.scalatra.scalate.tooling:scalate-archetype-guice_2.10 (An archetype which creates an empty Scalate Guice web application)
925: remote -> org.scalatra.scalate.tooling:scalate-archetype-guice_2.11 (An archetype which creates an empty Scalate Guice web application)
926: remote -> org.scalatra.scalate.tooling:scalate-archetype-jersey_2.10 (An archetype which creates an empty Scalate web application)
927: remote -> org.scalatra.scalate.tooling:scalate-archetype-jersey_2.11 (An archetype which creates an empty Scalate web application)
928: remote -> org.scalatra.scalate.tooling:scalate-archetype-sitegen_2.10 (An archetype which creates an empty Scalate static website generation proj
ect)
929: remote -> org.scalatra.scalate.tooling:scalate-archetype-sitegen_2.11 (An archetype which creates an empty Scalate static website generation proj
ect)
930: remote -> org.sculptorgenerator:sculptor-maven-archetype (Maven archetype for a business tier project using the Sculptor code generator)
931: remote -> org.sculptorgenerator:sculptor-maven-archetype-ear (Maven archetype for a EAR project using the Sculptor code generator)
932: remote -> org.sculptorgenerator:sculptor-maven-archetype-parent (Maven archetype for a parent project using the Sculptor code generator)
933: remote -> org.sculptorgenerator:sculptor-maven-archetype-web (Maven archetype for a WAR project using the Sculptor code generator)
934: remote -> org.siqisource.agave:archetypes-quickstart (-)
935: remote -> org.sitoolkit.archetype:sit-archetype (This project is generated from org.sitoolkit.archetype:sit-archetype)
936: remote -> org.sitoolkit.tester:sit-tester-archetype (archetype for sit-tester)
937: remote -> org.slf4j:slf4j-archetype (The slf4j Archetype)
938: remote -> org.slick2d:slick2d-basic-game-archetype (Maven archetype for a Slick2D based game)
939: remote -> org.sonatype.flexmojos:flexmojos-archetypes-application (-)
940: remote -> org.sonatype.flexmojos:flexmojos-archetypes-library (-)
941: remote -> org.sonatype.flexmojos:flexmojos-archetypes-modular-webapp (-)
942: remote -> org.sonatype.nexus.archetypes:nexus-plugin-archetype (-)
943: remote -> org.springframework.osgi:spring-osgi-bundle-archetype (Spring OSGi Maven2 Archetype)
944: remote -> org.springframework.ws:spring-ws-archetype (Spring Web Services Maven2 Archetype.)
945: remote -> org.sqlproc:sqlproc-archetype-simple-jdbc (SQL Processor Archetype for Simple JDBC Application)
946: remote -> org.sqlproc:sqlproc-archetype-simple-spring (SQL Processor Archetype for Simple Spring Application)
947: remote -> org.structr:structr-base-archetype (Structr is an open source framework based on the popular Neo4j graph database.)
948: remote -> org.structr:structr-simple-example-archetype (Structr is an open source framework based on the popular Neo4j graph database.)
949: remote -> org.structr:structr-ui-archetype (Structr is an open source framework based on the popular Neo4j graph database.)
950: remote -> org.sweble.wikitext:swc-example-basic-archetype (An archetype that creates a simple application which is able to parse a page
    written in Wikitext and render it as HTML.)
951: remote -> org.sweble.wikitext:swc-example-serialization-archetype (An example project that contains a simple application that is able to parse
    a page written in Wikitext and serialize it to XML, JSON or binary.)
952: remote -> org.sweble.wikitext:swc-example-xpath-archetype (An archetype that creates a simple application which is able to parse
    a page written in Wikitext and perform an XPath query on that document.)
953: remote -> org.switchyard.archetypes:switchyard-application (-)
954: remote -> org.syncope:syncope-archetype (Syncope archetype)
955: remote -> org.telosys.starterkits:angularHtml5offline-starterkit (archetype for starter Kit angular Html5 offline)
956: remote -> org.telosys.starterkits:struts-jpa-starterkit (archetype for starter Kit Struts)
957: remote -> org.tinygroup:buproject (-)
958: remote -> org.tinygroup:flowcomponent (-)
959: remote -> org.tinygroup:plugincomponent (-)
960: remote -> org.tinygroup:uicomponent-archetype (-)
961: remote -> org.tinygroup:webappproject (-)
962: remote -> org.trailsframework:trails-archetype (-)
963: remote -> org.trailsframework:trails-secure-archetype (-)
964: remote -> org.tynamo:tynamo-archetype (-)
965: remote -> org.uberfire:uberfire-component-archetype (UberFire Component Archetype)
966: remote -> org.uberfire:uberfire-project-archetype (UberFire Project Archetype)
967: remote -> org.wicketstuff.scala:wicket-scala-archetype (-)
968: remote -> org.wicketstuff.scala:wicketstuff-scala-archetype (Basic setup for a project that combines Scala and Wicket,
                depending on the Wicket-Scala project. Includes an example Specs
                test.)
969: remote -> org.wikbook:wikbook.archetype (-)
970: remote -> org.xaloon.archetype:xaloon-archetype-wicket-jpa-glassfish (-)
971: remote -> org.xaloon.archetype:xaloon-archetype-wicket-jpa-spring (-)
972: remote -> org.xwiki.commons:xwiki-commons-component-archetype (Make it easy to create a maven project for creating XWiki Components.)
973: remote -> org.xwiki.rendering:xwiki-rendering-archetype-macro (Make it easy to create a maven project for creating XWiki Rendering Macros.)
974: remote -> org.zkoss:zk-archetype-component (An archetype that generates a starter ZK component project)
975: remote -> org.zkoss:zk-archetype-extension (An archetype that generates a starter ZK extension project)
976: remote -> org.zkoss:zk-archetype-theme (An archetype that generates a starter ZK theme project)
977: remote -> org.zkoss:zk-archetype-webapp (An archetype that generates a starter ZK CE webapp project)
978: remote -> org.zkoss:zk-ee-eval-archetype-webapp (An archetype that generates a starter ZK EE-eval webapp project)
979: remote -> org.zkoss:zk-ee-eval-archetype-webapp-spring (An archetype that generates a starter ZK EE-eval webapp project with Spring)
980: remote -> org.zkoss:zk-ee-eval-archetype-webapp-spring-jpa (An archetype that generates a starter ZK EE-eval webapp project with Spring and JPA)
981: remote -> pl.bristleback:webapp-archetype (Web archetype for Bristleback Websocket Framework)
982: remote -> pro.savant.circumflex:webapp-archetype (-)
983: remote -> ru.circumflex:circumflex-archetype (-)
984: remote -> ru.nikitav.android.archetypes:release (-)
985: remote -> ru.nikitav.android.archetypes:release-robolectric (-)
986: remote -> ru.stqa.selenium:webdriver-java-archetype (Archetype for a Maven project intended to develop tests with Selenium WebDriver and JUnit/Te
stNG)
987: remote -> ru.stqa.selenium:webdriver-junit-archetype (Archetype for a Maven project intended to develop tests with Selenium WebDriver and JUnit)
988: remote -> ru.stqa.selenium:webdriver-testng-archetype (Archetype for a Maven project intended to develop tests with Selenium WebDriver and TestNG
)
989: remote -> se.vgregion.javg.maven.archetypes:javg-minimal-archetype (-)
990: remote -> sk.seges.sesam:sesam-annotation-archetype (-)
991: remote -> tk.skuro:clojure-maven-archetype (A simple Maven archetype for Clojure)
992: remote -> tr.com.lucidcode:kite-archetype (A Maven Archetype that allows users to create a Fresh Kite project)
993: remote -> uk.ac.rdg.resc:edal-ncwms-based-webapp (-)
994: local -> com.sun.faces:simple-jsf (Archetype for creating a simple JSF project)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 387:

------------------------------------------------------

http://www.mkyong.com/hibernate/maven-3-hibernate-3-6-oracle-11g-example-xml-mapping/

executed  - one line command - if you miss to execute in one line , then you might need to give archtype and various other detials


mvn archetype:generate -DgroupId=com.mkyong -DartifactId=HibernateExample -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false



C:\example\Tutorial\Hibernate>mvn archetype:generate -DgroupId=com.mkyong -DartifactId=HibernateExample -DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0/maven-archetype-quickstart-1.0.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0/maven-archetype-quickstart-1.0.jar (5 KB at 2.0 K
B/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0/maven-archetype-quickstart-1.0.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0/maven-archetype-quickstart-1.0.pom (703 B at 1.3
KB/sec)
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mkyong
[INFO] Parameter: packageName, Value: com.mkyong
[INFO] Parameter: package, Value: com.mkyong
[INFO] Parameter: artifactId, Value: HibernateExample
[INFO] Parameter: basedir, Value: C:\example\Tutorial\Hibernate
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: C:\example\Tutorial\Hibernate\HibernateExample
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.246s
[INFO] Finished at: Fri May 09 11:22:11 IST 2014
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
C:\example\Tutorial\Hibernate>


This will create simple maven project with 
/HibernateExample/src/main/java/com/mkyong/App.java 
/HibernateExample/src/test/java/com/mkyong/AppTest.java
---------  pom will have---
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4.0.0
  com.mkyong
  HibernateExample
  jar
  1.0-SNAPSHOT
  HibernateExample
  http://maven.apache.org
  
 
  
   
      junit
      junit
      3.8.1
      test
   
    
 
  


----------------
http://www.mkyong.com/hibernate/maven-3-hibernate-3-6-oracle-11g-example-xml-mapping/

created table 
oracle sql given as 

CREATE TABLE DBUSER ( 
  USER_ID       NUMBER (5)    NOT NULL, 
  USERNAME      VARCHAR2 (20)  NOT NULL, 
  CREATED_BY    VARCHAR2 (20)  NOT NULL, 
  CREATED_DATE  DATE          NOT NULL, 
  PRIMARY KEY ( USER_ID ) 
)

--- as i was using Mysql  --

CREATE TABLE DBUSER ( 
  USER_ID       BIGINT (5)    NOT NULL, 
  USERNAME      VARCHAR (20)  NOT NULL, 
  CREATED_BY    VARCHAR (20)  NOT NULL, 
  CREATED_DATE  DATE        NOT NULL, 
  PRIMARY KEY ( USER_ID ) 
)

---

then created java class - POJO for map table
under package   com.mkyong.user  DBUser.java

--

public class DBUser implements Serializable {

private int userId;
private String username;
private String createdBy;
private Date createdDate;

public int getUserId() {
return userId;
}

public void setUserId(int userId) {
this.userId = userId;
}

public String getUsername() {
return username;
}

public void setUsername(String username) {
this.username = username;
}

public String getCreatedBy() {
return createdBy;
}

public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}

public Date getCreatedDate() {
return createdDate;
}

public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}

}

-----------
next step  : Create following “DBUser.hbm.xml” file and put it under “src/main/resources/com/mkyong/user“.
so 
created  DBUser.hbm.xml  under C:\Amal\Tutorial\Hibernate\HibernateExample\src\main\resources\com\mkyong\user

-- then added /HibernateExample/src/main/resources/hibernate.cfg.xml

------------

"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
  com.mysql.jdbc.Driver
  jdbc:mysql://localhost:3306/mkyong
  root
  root123
  org.hibernate.dialect.MySQLDialect
  MKYONG
  true
 


--- given oracle was-------

"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
  oracle.jdbc.driver.OracleDriver
  jdbc:oracle:thin:@127.0.0.1:1521:MKYONG
  mkyong
  password
  org.hibernate.dialect.Oracle10gDialect
  MKYONG
  true
 

----------

created HibernateUtil.java

/HibernateExample/src/main/java/com/mkyong/util/HibernateUtil.java

------------------------

package com.mkyong.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {

private static final SessionFactory sessionFactory = buildSessionFactory();
 
private static SessionFactory buildSessionFactory() {
try {
// Create the SessionFactory from hibernate.cfg.xml
return new Configuration().configure().buildSessionFactory();
} catch (Throwable ex) {
// Make sure you log the exception, as it might be swallowed
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
 
public static SessionFactory getSessionFactory() {
return sessionFactory;
}
 
public static void shutdown() {
// Close caches and connection pools
getSessionFactory().close();
}
}



---------
now HibernateUtil.java need to resolve dependency

added

org.hibernate
hibernate-core
3.6.3.Final

so hibernate depency will be resolve

-----
  now to check the example i write below code in App.java
  /HibernateExample/src/main/java/com/mkyong/App.java
  
  -------------------
  
  
  package com.mkyong;
 
import java.util.Date;
import org.hibernate.Session;
import com.mkyong.util.HibernateUtil;
import com.mkyong.user.DBUser;
 
public class App {
public static void main(String[] args) {
System.out.println("Maven + Hibernate + MySql");
Session session = HibernateUtil.getSessionFactory().openSession();
 
session.beginTransaction();
DBUser user = new DBUser();
 
user.setUserId(100);
user.setUsername("superman");
user.setCreatedBy("system");
user.setCreatedDate(new Date());
 
session.save(user);
session.getTransaction().commit();
}
}

--------------

run the code , you will get below error

-----------------------



Maven + Hibernate + MySql
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Initial SessionFactory creation failed.org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:17)
at com.mkyong.util.HibernateUtil.(HibernateUtil.java:8)
at com.mkyong.App.main(App.java:21)
Caused by: org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:89)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2836)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2832)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1843)
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:13)
... 2 more
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:84)
... 10 more

-----------------------------------------
this is cause i did not add the mysql driver class, dependency
--- add mysql dependency
mysql
mysql-connector-java
5.1.9
you may have to build and run mvn eclipse:eclipse  again
and refresh and see the dependency in the project. you can see the mysql connector jar
--------------------------------------
Now run 
/HibernateExample/src/main/java/com/mkyong/App.java
still getting error 
---
Hello World!
Maven + Hibernate + MySql
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Initial SessionFactory creation failed.org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:17)
at com.mkyong.util.HibernateUtil.(HibernateUtil.java:8)
at com.mkyong.App.main(App.java:21)
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:108)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:133)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:80)
at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:322)
at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:485)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:133)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:286)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845)
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:13)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:105)
... 11 more
Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter
at org.hibernate.bytecode.javassist.BytecodeProviderImpl.getProxyFactoryFactory(BytecodeProviderImpl.java:49)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactoryInternal(PojoEntityTuplizer.java:205)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:167)
at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:77)
... 16 more
Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 21 more

--------------
pom cotains
------
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4.0.0
  com.mkyong
  HibernateExample
  jar
  1.0-SNAPSHOT
  HibernateExample
  http://maven.apache.org
  
 
  
   
      junit
      junit
      3.8.1
      test
   
    
   
   
org.hibernate
hibernate-core
3.6.3.Final
mysql
mysql-connector-java
5.1.9
 
  


-----------------------------------
this  error comes cause "javassist"  library dependency not given in pom

what is this 
http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/

Javassist (Java Programming Assistant) makes Java bytecode manipulation simple. It is a class library for editing bytecodes in Java; it enables Java programs to define a new class at runtime and to modify a class file when the JVM loads it. Unlike other similar bytecode editors, Javassist provides two levels of API: source level and bytecode level. If the users use the source-level API, they can edit a class file without knowledge of the specifications of the Java bytecode. The whole API is designed with only the vocabulary of the Java language. You can even specify inserted bytecode in the form of source text; Javassist compiles it on the fly. On the other hand, the bytecode-level API allows the users to directly edit a class file as other editors.


Added 

javassist
javassist
3.12.1.GA
then run /HibernateExample/src/main/java/com/mkyong/App.java
-------------------------------
package com.mkyong;

import java.util.Date;

import org.hibernate.Session;

import com.mkyong.user.DBUser;
import com.mkyong.util.HibernateUtil;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        
        System.out.println("Maven + Hibernate + MySql");
Session session = HibernateUtil.getSessionFactory().openSession();
 
session.beginTransaction();
DBUser user = new DBUser();
 
user.setUserId(100);
user.setUsername("superman");
user.setCreatedBy("system");
user.setCreatedDate(new Date());
 
session.save(user);
session.getTransaction().commit();
    }
}


----------------------


ou will get output

Hello World!
Maven + Hibernate + MySql
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Hibernate: insert into MKYONG.DBUSER (USERNAME, CREATED_BY, CREATED_DATE, USER_ID) values (?, ?, ?, ?)


------------------

this will enter data for table  DBUSER;

if run sql
select * from DBUSER;

USER_ID,USERNAME,CREATED_BY,CREATED_DATE
100,superman,system,2014-05-09


-------- see running App.java again and see the output



Exception comes --------------------


Hello World!
Maven + Hibernate + MySql
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Hibernate: insert into MKYONG.DBUSER (USERNAME, CREATED_BY, CREATED_DATE, USER_ID) values (?, ?, ?, ?)
Exception in thread "main" org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:383)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:133)
at com.mkyong.App.main(App.java:32)
Caused by: java.sql.BatchUpdateException: Duplicate entry '100' for key 'PRIMARY'
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2007)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1443)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 8 more

----------
you will get Duplicate entry '100' for key 'PRIMARY'

this happens cause we have set "USER_ID" as Primary Key. Primary key cannot have duplicate values, where when we reexecute same program our values will be same.
If you change the value for user.setUserId(100); other than 100 , what we have already entered
then we can execute this without any  exception.
So let's try re run with user.setUserId(101);

output----------

Hello World!
Maven + Hibernate + MySql
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Hibernate: insert into MKYONG.DBUSER (USERNAME, CREATED_BY, CREATED_DATE, USER_ID) values (?, ?, ?, ?)



---------------


select * from DBUSER;

USER_ID,USERNAME,CREATED_BY,CREATED_DATE
100,superman,system,2014-05-09
101,superman,system,2014-05-09


------------------- 
imporatant things to be consider

HibernateUtil.java

------------
package com.mkyong.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {

private static final SessionFactory sessionFactory = buildSessionFactory();
 
private static SessionFactory buildSessionFactory() {
try {
// Create the SessionFactory from hibernate.cfg.xml
return new Configuration().configure().buildSessionFactory();
} catch (Throwable ex) {
// Make sure you log the exception, as it might be swallowed
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
 
public static SessionFactory getSessionFactory() {
return sessionFactory;
}
 
public static void shutdown() {
// Close caches and connection pools
getSessionFactory().close();
}
}

----------------

 this has private method, which builds Session Factory and assaign to session factory object.
 via, getSessionFactory() method consumer can retrive session factory object.
 
 
 let's try to move this to annotations..
 
 what will be the changes
 1. Obvously we need dependency jars for annotations
 
 Add hibernate-annotations and hibernate-commons-annotations dependency 
 
 
hibernate-annotations
hibernate-annotations
3.3.0.GA
 
hibernate-commons-annotations
hibernate-commons-annotations
3.0.0.GA
 
 2. We need to change the HibernateUtil.java to support annotions 
where prviously with XML mapping we had
return new Configuration().configure().buildSessionFactory();
we need to change this to 
return new AnnotationConfiguration().configure().buildSessionFactory();
so in simple, configuration will be changed to AnnotationConfiguration.
So now we have added dependency and change HibernateUtil.java to build the session factory object.
Now we need to change the java class to support the annotation.
When we  come to annotation, we don't have hbm.xml file to map Java class and database table.
We are mapping table and its columns straight away with the Java Class with annotations.
3. the change DBUser.java to support annotations
let's create a seperate class and table, so we can clearly see the difference.
create Stock.java 
/HibernateExample/src/main/java/com/mkyong/common/Stock.java
@Entity =  javax.persistence.Entity;
@Table(name = "stock", catalog = "mkyong", uniqueConstraints = {
@UniqueConstraint(columnNames = "STOCK_NAME"),
@UniqueConstraint(columnNames = "STOCK_CODE") })
will be mapped the table stock under schema "mkyong"   with the columns STOCK_NAME and STOCK_CODE with uniqueConstraints.
-------------------------  following is the sql script for table
DROP TABLE IF EXISTS `stock`;
CREATE TABLE `stock` (
  `STOCK_ID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `STOCK_CODE` VARCHAR(10) NOT NULL,
  `STOCK_NAME` VARCHAR(20) NOT NULL,
  PRIMARY KEY (`STOCK_ID`) USING BTREE,
  UNIQUE KEY `UNI_STOCK_NAME` (`STOCK_NAME`),
  UNIQUE KEY `UNI_STOCK_ID` (`STOCK_CODE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


-------------------------------
we have defined Stock.java as Entity with @Entity and Mapped it for table with @Table tag or annotation,
now we need to define the properties corresponding to the table rows, inside the Stock.java
so added three varibles corresponding to the table column values as below.
private Integer stockId;
private String stockCode;
private String stockName;
then we add the getters and setters.
In the Getters, we need to map the values coming from table row for java field using annotation @Column
so finally Stock.java  hibernate mapping class will be like as below
------------------------------------
package com.mkyong.common;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.hibernate.type.TrueFalseType;

@Entity
@Table(name = "stock", catalog = "mkyong", uniqueConstraints = {
@UniqueConstraint(columnNames = "STOCK_NAME"),
@UniqueConstraint(columnNames = "STOCK_CODE") })
public class Stock implements Serializable {

private Integer stockId;
private String stockCode;
private String stockName;

public Stock() {

}

public Stock(String stockCode, String stockName) {
this.stockCode = stockCode;
this.stockName = stockName;
}

@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "STOCK_ID", unique = true, nullable = false)
public Integer getStockId() {
return stockId;
}

public void setStockId(Integer stockId) {
this.stockId = stockId;
}

@Column(name = "STOCK_CODE", unique = true, nullable = false, length = 10)
public String getStockCode() {
return stockCode;
}

public void setStockCode(String stockCode) {
this.stockCode = stockCode;
}

@Column(name = "STOCK_NAME", unique = true, nullable = false, length = 20)
public String getStockName() {
return stockName;
}

public void setStockName(String stockName) {
this.stockName = stockName;
}
}


---------------------

now we have mapped the java class to table with hibernate annotations

important points to be considered

1. Class mapped with @Entity
2. table mapped with @Table  giving name of the table, schema table belongs with uniqueConstraints
3. create properties for each column
4. map each columns in the getters
5. StockId column is primary key so mapped with @Id
6. Also it is set to auto increment - we need to map this with annotation  @GeneratedValue(strategy = IDENTITY)
7. where we have used IDENTITY as import static javax.persistence.GenerationType.IDENTITY;
8. finally mapping table column with its name with the constraints given as
@Column(name = "STOCK_ID", unique = true, nullable = false)
9.other two clumns are mapped with their names and constraints as follows

@Column(name = "STOCK_CODE", unique = true, nullable = false, length = 10)
@Column(name = "STOCK_NAME", unique = true, nullable = false, length = 20)

1. So upto now we have change the HibernateUtil.java to create session using annotations.
2. Change the Stock.java , actually implement the java class to support annotation(hbm class)

Now prviously we had XML file mapping class with  the table
Now we don't have 
we have specified mapping inside hbm.xml file and linked it in the 
/HibernateExample/src/main/resources/hibernate.cfg.xml  

with mapping tag giving resource


Now we do not have hbm.xml file, but we still need to link the hbm class to "hibernate.cfg.xml  "

we need to map with class property instead of resource (previously xml file is a resource, now we have a class)



in simple for the third step

3. hbm.xml mapping will be change to hbm class mapping 
eg: Previously it had the Hibernate XML mapping file with “mapping resource” tag

change to 

Change it to model class with “mapping class” tag


once again in conclusion
changes will be applied to when come annotation will be

1. HibernateUtil.java - sessionFactory will be created using AnnotationConfiguration() instead of Configuration()
2. hbm.xml file will be removed and hbm java class will be modified with annotation to map with ehe table using @Entity , @Table, use on top of class declaration and @Column in the getters
3. Hibernate configuration file mapping of the hbm class and table mapping will be change from to to 

eg :    to .


Application will be tested using  /HibernateExample/src/main/java/com/mkyong/App2.java


------------------

package com.mkyong;

import org.hibernate.Session;

import com.mkyong.common.Stock;
import com.mkyong.util.HibernateUtil;

public class App2 {
public static void main(String[] args) {
System.out.println("Maven + Hibernate + MySQL");
Session session = HibernateUtil.getSessionFactory().openSession();

session.beginTransaction();
Stock stock = new Stock();

stock.setStockCode("4715");
stock.setStockName("GENM");

session.save(stock);
session.getTransaction().commit();
}
}



------------------------------

with previous dependency we had an error 

----
hibernate-annotations
hibernate-annotations
3.3.0.GA
 
hibernate-commons-annotations
hibernate-commons-annotations
3.0.0.GA
-------------------------

[INFO] ------------------------------------------------------------------------
[WARNING] The POM for hibernate-annotations:hibernate-annotations:jar:3.3.0.GA is missing, no dependency information available
[WARNING] The POM for hibernate-commons-annotations:hibernate-commons-annotations:jar:3.0.0.GA is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.278s
[INFO] Finished at: Fri May 09 17:40:05 IST 2014
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project HibernateExample: Could not resolve dependencies for project com.mkyong:HibernateExample:jar:1.0-SNAPSHOT: T
he following artifacts could not be resolved: hibernate-annotations:hibernate-annotations:jar:3.3.0.GA, hibernate-commons-annotations:hibernate-common
s-annotations:jar:3.0.0.GA: Failure to find hibernate-annotations:hibernate-annotations:jar:3.3.0.GA in http://repo1.maven.org/maven2 was cached in th
e local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
C:\Amal\Tutorial\Hibernate\HibernateExample>mvn clean compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HibernateExample 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------

---------  so we used below two depencies----------------

org.hibernate
hibernate-annotations
3.5.6-Final
            
 
org.hibernate
hibernate-commons-annotations
3.3.0.ga


successfully compiled

-------------------
C:\Amal\Tutorial\Hibernate\HibernateExample>mvn clean compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HibernateExample 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate/3.2.1.ga/hibernate-3.2.1.ga.jar
Downloading: http://repo1.maven.org/maven2/cglib/cglib/2.1_3/cglib-2.1_3.jar
Downloaded: http://repo1.maven.org/maven2/cglib/cglib/2.1_3/cglib-2.1_3.jar (276 KB at 52.8 KB/sec)
Downloaded: http://repo1.maven.org/maven2/org/hibernate/hibernate/3.2.1.ga/hibernate-3.2.1.ga.jar (2147 KB at 34.6 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ HibernateExample ---
[INFO] Deleting C:\Amal\Tutorial\Hibernate\HibernateExample\target
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ HibernateExample ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ HibernateExample ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 5 source files to C:\Amal\Tutorial\Hibernate\HibernateExample\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:03.657s
[INFO] Finished at: Fri May 09 17:43:33 IST 2014
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
C:\Amal\Tutorial\Hibernate\HibernateExample>



--------------------------------------------------

then run mvn eclipse:eclipse

C:\Amal\Tutorial\Hibernate\HibernateExample>mvn clean eclipse:eclipse
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HibernateExample 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ HibernateExample ---
[INFO] Deleting C:\Amal\Tutorial\Hibernate\HibernateExample\target
[INFO]
[INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ HibernateExample >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ HibernateExample <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ HibernateExample ---
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Not writing settings - defaults suffice
[INFO] File C:\Amal\Tutorial\Hibernate\HibernateExample\.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "HibernateExample" to C:\Amal\Tutorial\Hibernate\HibernateExample.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.155s
[INFO] Finished at: Fri May 09 17:45:36 IST 2014
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
C:\Amal\Tutorial\Hibernate\HibernateExample>

------- refresh eclipse project and tried to run App2.java

Exception


Maven + Hibernate + MySQL
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/MetadataProvider
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:21)
at com.mkyong.util.HibernateUtil.(HibernateUtil.java:9)
at com.mkyong.App2.main(App2.java:11)
Caused by: java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/MetadataProvider
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:17)
... 2 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataProvider
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more

---------------------
 *** this issue comes due missing of Hibernate commons annotations library.
 
 
 --2014-05-12----------------
 
 
 Maven + Hibernate + MySQL
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Initial SessionFactory creation failed.java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:21)
at com.mkyong.util.HibernateUtil.(HibernateUtil.java:9)
at com.mkyong.App2.main(App2.java:11)
Caused by: java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector
at org.hibernate.cfg.Configuration.createReflectionManager(Configuration.java:2962)
at org.hibernate.cfg.Configuration.createReflectionManager(Configuration.java:2957)
at org.hibernate.cfg.Configuration.reset(Configuration.java:307)
at org.hibernate.cfg.Configuration.(Configuration.java:298)
at org.hibernate.cfg.Configuration.(Configuration.java:302)
at org.hibernate.cfg.AnnotationConfiguration.(AnnotationConfiguration.java:75)
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:17)
... 2 more

---------  explanation given in web
http://www.mkyong.com/hibernate/hibernate-error-javareflectionmanager-cannot-be-cast-to-metadataproviderinjector/
Caused by: java.lang.ClassCastException: 
org.hibernate.annotations.common.reflection.java.JavaReflectionManager 
cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector
Hibernate annotation module is merged into Hibernate core module since v3.5 (if not mistake). 
In this case, Hibernate is detected two annotation modules, from both “Hibernate core” and “Hibernate annotation“, causing conflict 
and prompt the ClassCastException.
To fix it, just delete both of the hibernate-annotations-3.4.0.GA.jar 
and hibernate-commons-annotations-3.0.0.GA.jar, because latest Hibernate core library is able to perform annotation task without other dependency.
So i have remove both dependency from POM.
org.hibernate
hibernate-annotations
3.5.6-Final
            
 
org.hibernate
hibernate-commons-annotations
3.3.0.ga


---- this resulted  ----

Maven + Hibernate + MySQL
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/MetadataProvider
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:20)
at com.mkyong.util.HibernateUtil.(HibernateUtil.java:8)
at com.mkyong.App2.main(App2.java:11)
Caused by: java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/MetadataProvider
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:16)
... 2 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataProvider
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more

----------- as this error was there , 
i chnage the maven command to run the main application : App2.java
if you run directly main class from command line with mvn command
execute command for run main method will be as below.
mvn exec:java -Dexec.mainClass="com.mkyong.App2"
--- if you  want to run again and again it will be easy to add a plugin to pom and rexcute it.
add below 
------------------
org.codehaus.mojo
exec-maven-plugin
1.2.1
java
com.mkyong.Test
foo
bar

--------------------
execute mvn command as below
mvn exec:java

above example has com.mkyong.Test  clas with the main method 
in code block we have given  arguments also.
if yiu do not need you don't want to specify the arguments.
want to know more about plugins
http://maven.apache.org/guides/mini/guide-configuring-plugins.html
---- 
we have an error 
class missing
i have changed 
org.hibernate.common
hibernate-commons-annotations
4.0.1.Final
finally pom will include for hibernate
----------
org.hibernate
hibernate-core
4.1.4.Final


org.hibernate.common
hibernate-commons-annotations
4.0.1.Final
you will get rid of class not found error
just a matter of finding a correct downloadable dependency
http://mvnrepository.com/artifact/org.hibernate.common/hibernate-commons-annotations/4.0.1.Final
Also i have remove deprecated import org.hibernate.cfg.AnnotationConfiguration;
from HibernateUtil and used
import org.hibernate.cfg.Configuration;
return new Configuration().configure().buildSessionFactory();
-----------  now we have below error ----------
Maven + Hibernate + MySQL
May 12, 2014 12:23:22 PM org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
May 12, 2014 12:23:22 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.4.Final}
May 12, 2014 12:23:22 PM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
May 12, 2014 12:23:22 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
May 12, 2014 12:23:22 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
May 12, 2014 12:23:22 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
May 12, 2014 12:23:22 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
Initial SessionFactory creation failed.org.hibernate.MappingException: element in configuration specifies no known attributes
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:20)
at com.mkyong.util.HibernateUtil.(HibernateUtil.java:8)
at com.mkyong.App2.main(App2.java:11)
Caused by: org.hibernate.MappingException: element in configuration specifies no known attributes
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2140)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2081)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2061)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2014)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1929)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1908)
at com.mkyong.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:16)
... 2 more

/HibernateExample/src/main/resources/hibernate.cfg.xml
----------
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
  com.mysql.jdbc.Driver
  jdbc:mysql://localhost:3306/mkyong
  root
  root123
  org.hibernate.dialect.MySQLDialect
  MKYONG
  true
 
 


-----------------

Issue : 

remove extra   tag
so when this error comes 
llok at some anomally in the xml tags
basically not closed , not properly nested.



---- now we have new error in saving

Maven + Hibernate + MySQL
May 12, 2014 12:39:34 PM org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
May 12, 2014 12:39:34 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.4.Final}
May 12, 2014 12:39:34 PM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
May 12, 2014 12:39:34 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
May 12, 2014 12:39:34 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
May 12, 2014 12:39:34 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
May 12, 2014 12:39:34 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
May 12, 2014 12:39:34 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
May 12, 2014 12:39:34 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)
May 12, 2014 12:39:34 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20
May 12, 2014 12:39:34 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000006: Autocommit mode: false
May 12, 2014 12:39:34 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/mkyong]
May 12, 2014 12:39:34 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000046: Connection properties: {user=root, password=****}
May 12, 2014 12:39:36 PM org.hibernate.dialect.Dialect
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
May 12, 2014 12:39:36 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
May 12, 2014 12:39:36 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
May 12, 2014 12:39:36 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory
INFO: HHH000397: Using ASTQueryTranslatorFactory
Hibernate: insert into mkyong.MKYONG.stock (STOCK_CODE, STOCK_NAME) values (?, ?)
May 12, 2014 12:39:36 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
WARN: SQL Error: 1064, SQLState: 42000
May 12, 2014 12:39:36 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.stock (STOCK_CODE, STOCK_NAME) values ('4715', 'GENM')' at line 1
Exception in thread "main" org.hibernate.exception.SQLGrammarException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.stock (STOCK_CODE, STOCK_NAME) values ('4715', 'GENM')' at line 1
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:82)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)
at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
at $Proxy11.executeUpdate(Unknown Source)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:96)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:58)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2767)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3278)
at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:81)
at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:362)
at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:203)
at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:183)
at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:167)
at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:320)
at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:287)
at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:193)
at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:126)
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:204)
at org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:55)
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:189)
at org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:49)
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:757)
at org.hibernate.internal.SessionImpl.save(SessionImpl.java:749)
at org.hibernate.internal.SessionImpl.save(SessionImpl.java:745)
at com.mkyong.App2.main(App2.java:19)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.stock (STOCK_CODE, STOCK_NAME) values ('4715', 'GENM')' at line 1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2643)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2362)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2280)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2265)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)
... 24 more

--------------


at com.mkyong.App2.main(App2.java:19)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.stock (STOCK_CODE, STOCK_NAME) values ('4715', 'GENM')' at line 1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
App2.java line 19 has below code fragment
l19:   session.save(stock);
Reason : /HibernateExample/src/main/resources/hibernate.cfg.xml
I have given
MKYONG
the schema name
and also in hbm mapping class
@Table(name = "stock", catalog = "mkyong", uniqueConstraints = {
@UniqueConstraint(columnNames = "STOCK_NAME"),
@UniqueConstraint(columnNames = "STOCK_CODE") })
catalog = "mkyong",
this will make sql statement as
Hibernate: insert into mkyong.MKYONG.stock (STOCK_CODE, STOCK_NAME) values (?, ?)
where you will have two schema names in the sql statement
MKYONG - from hibernate.cfg.xml
mkyong  -  from Stock.java @Table(....catalog = "mkyong",...)
you need to have only one .
either 
MKYONG  in the hibernate.cfg.xml
or
 
@Table(....catalog = "mkyong",...)   in hbm mapping class