<sql-type jdbc-type="NUMERIC" hibernate-type="java.lang.Long"/>

bawltherapistΛογισμικό & κατασκευή λογ/κού

13 Δεκ 2013 (πριν από 3 χρόνια και 10 μήνες)

103 εμφανίσεις

Initially project consist of below directory structure


User
Input:

hibernate.properties

In this file you need to give database credential, code generator

will apply reverse
engineering rule and create JPA classes for you from given database credential.

Parameters:

1.

hibernate.connection.driver_class



䑡瑡D慳e⁤物ve爠捬慳s



hibernate.connection.url


䩄䉃⁕JL



hibernate.connection.username


d慴慢慳e⁵se牮慭a



hibernate.connection.password


d慴慢慳e p慳swo牤



hibernate.dialect


hibe牮慴e⁤i慬ec琠景爠ri癥n⁤a
瑡b慳e⁳che浡



hibernate.default_schema


d慴ab慳e⁳che浡慭m

hibern慴a⹲e癥ng⹸浬

A

hibe牮慴e⹲.癥ng⹸浬

file c慮 p牯癩ve 愠 晩ner deg牥e o映 con瑲ol o映 瑨e 牥癥rse
engineering p牯cess⸠.n⁴his⁦ le⁹ou⁣慮⁳peci晹⁴祰e慰 ings⁡nd⁴慢le⁦ l瑥物ng.

偡牡浥瑥牳:



type
-
mapping


i琠till慰⁊䑂䌠d慴愠瑹ae⁴ 慶愠a慴愠瑹ae⁦ 爠捯de⁧ene牡rion

Fo爠rx慭ale›

<sql
-
type jdbc
-
type="NUMERIC" hibernate
-
type="java.lang.Long"/>

2.

table


䥴⁷ill gene牡re⁊ A⁣l慳s wi瑨⁧i癥n⁣lass慭攠景爠riven⁴慢le



http://docs.jboss.org/tools/OLD/3.0.0.CR1/en/hibernatetools/html/reverseengi
neering.html


After configuring your input just execute ant command from
root directory of project using command prompt, tool will
generate JPA code for you and updated directory structure would be


Directory

Explanation

config

All user input files would be placed here

lib

All third party libraries are placed here

src

Generated code would be placed here

build

Generated Compiled classes would be placed here

dist

Deliverable JAR would be placed here

Project
Root
Driectory

config

hibernate.p
roperties

hibernate.r
eveng.xml

lib

Project
Root
Driectory

config

hibernate.
properties

hibernate.r
eveng.xml

lib

src

build

dist