Register | Log in | Password |

365 projects | 71 services | 215 websites | 1073 freelancers | 2760 topics | advertise


Purchase JoomlaWatch:
30 day money-back guarantee
Read more...
9 EUR lifetime license
Buy Now

15 EUR lifetime license
Buy Now
(nofollow link from sponsors page)

Login:

23.1%United States United States
15.5%India India
7.3%Russian Federation Russian Federation
7.1%Colombia Colombia
6.1%Germany Germany
5.1%United Kingdom United Kingdom
4.4%Poland Poland
3.5%Netherlands Netherlands
3%France France
2.9%Canada Canada

Today: 510
Yesterday: 1586
This Week: 2096
Last Week: 10059
This Month: 8795
Total: 32109

Users

Most active users today from total of 22:
mlewis, matto, vsdileep, waseem, yosua.winata, plaginha, davoided, anewname1, mrits, Contestano, maryswave, NightOwl, artisan, dwlamb, vivacomputers, rottenberg, djunykasim, dlaurie, docklandassist, acrucesalus
About JoomlaWatch:
JoomlaWatch is popular joomla visitor tracking and live stats component. It provides several features such as spam blocking, goals tracking, charts, nightly email reports, latest visit map, interactive HTML5 traffic flow graph and many other useful functionalities, which will help you to optimize your site.
RSS Feeds:

rss Freelance
rss Projects
rss Forum
rss Resources

Home

Hibernate

Notes from the Hibernate training. Basic information about hibernate configuration, mapping and queries - architekt??ra
- mapovanie (basic, collection, component, inheritance)
- transakcie
- ??e biznis vrstva je realizovan?? be??n??mi Java objektami (nie komponentami typu EJB).
- polymorfick?? v??bery
- aplikacne rozhranie produktu hibernate (?)
- v??bery pod??a krit??ria
- nat??vne v??bery
- hibernate anot??cia
- anot??cia pre vlastnosti entity bean EJB 3.0
- roz????ren?? anot??cia
- pouzivanie cache mechanizmov
- optimalizacia vykonavania databazovych pristupov
- HAR ?
- object databases
- daju sa v ejb3 obist anotacie?






Rich object model, fine grain persistence model

- layer application pattern (made by layers)

scheme:
==========
View
Controll
Bussiness layer
Persistent layer
Persistent store

- fine grain persistence model (doesn't hide details)

persistent layer:
- low level layer (JDBC) - non object (SQL)
- high level layer (transformation layer)


BPM (Bussiness process management)
===
- Service oriented architecture - !!!
- BPL - language (transforms)
- object timers


- BPEL (Buss. process execution language)
- SOA (Service oriented architecture)
- jBPM - jbosses implementation of SOA
- BEA's implementation of SOA


SOA modelling
=============
BPML
|
v
Services
|
v
Components (EJB/servlets)
|
v
Persistence


Configuration:

Configuration object - universal

- configuration can be stored in universal configuration file ->

hibernate.properties in etc directory

- stored in CLASSPATH

or

hibernate.cfg.xml


JMX specification -> MBeans components, they have to manage applications, services etc.

hibernate can be a component - MBean in jboss, etc.

- there can be also some mapping information

-Dproperty = value (in start of virtual machine)

Configuration.setProperties()

- loading mapping of persistent classes (.xml)

- factory for SessionFactory object

SessionFactory
- manager of db connections
- represent cache of all objects
- thread-safe object (one for every database)
- configuration.buildSessionFactory()
- sessionFactory.openSession() -> creates a session object (communication) - all activities regarding persistence
- physical "cache"
- can be switched off, 2nd level cache

Session object - represents usage of hibernate API
- object that is not thread-safe
- you cannot use it in many threads !!
- represents first-level cache of objects
- logical "cache"
- short-time object, doesn't have to be used permanently
- just for one communication mechanism

Transaction
- wrapper for transactions


Mapping
- specified by metadata (XML files)


Package =~ namespace
one pojem is unique in a package


version 3:
- class can be in two or more tables


- test first design, extreme programming !
- mock objects - technology of testing within object
- separating algorithms to different classes
- exchanging class to which interface ukazuje for a test class
- you can test functionality this way

- "database last" - methodology ! you programm database last.. instead of that there are dummy objects
- Dummy objects -> by database last, for client - fictive objects, implemented by constants
- testing !!!
- you can have visual functional application by dummy objects
- "don't talk to strangers" design pattern
- CRUD (create, restore, update, delete)
- transient, persistent, detached states of hibernated objects
- detached object in hibernate !!!



mapping attributes:

- access = "field" (because of not using set/get methods, slower.. reflection)
- access = "property" (default)
- immutable = not modified in insert or update (computing functions), read only

- detached object = if the session is closed, object is then standalone

- session.evict - explicit signal for session to stop caching of an object

Queries:
- HQL - hibernate query language
- Query by Criteria - type-safe way for query, you will fill an object which are then criteria
- Query by Examples
- or Native SQL


Criteria objects

- specifying query by criteria

session.createCriteria(Zakaznik.class)
.add(Expression.eq("meno","Jano"))
.add(Expression.qt("id",new Long(2)))
.list();

- gt (greater than...)

Partial objects

- just in toplink, not hibernate


Report query

- you can aggregate objects
- HQL


Mapping of inheritance

- adds discriminator for entity type


Bidirectional association
- inverse = "true"

- one side is slave and one is master



Cascade save-update

- will save all referenced asssociated objects

cascade delete
- will delete all referenced asssociated objects

- cascade all


Cache mechanisms

- physical and logical cache
- evict - flush out cache
- max cache size
- JProfiler ! - tool for monitoring JVM, objects, memory space, etc.

{} - native select
 

Add comment


Security code
Refresh


no license? questions?

Recommended: (advertise)
Joomlawatch 1.2.17 Demo (PRO: 9/15 EUR)
Download Joomlawatch 1.2.17 (PRO: 9/15 EUR)

Rate this extension ...


Stay in touch:

New comprehensive article on JoomlaWatch goals: (link)

JoomlaWatch is now available for Drupal as unlocked BETA version for testing: (link)

New article about JoomlaWatch Live Stats feature: (link)
4 days ago from web

Tested versions 1.2.12 FREE, 1.2.17 PRO, 1.2.18 BETA on Joomla 2.5 and older Joomla 1.5 - confirmed to work on both Joomla versions
2 weeks ago from web

Small installer fixes - added JoomlaWatch compatibility with Joomla 2.5
2 weeks ago from web

New article on JoomlaWatch Traffic Flow feature: (link) ... All features of JoomlaWatch will be documented this way.
2 weeks ago from web

Another minor fixes for version 1.2.17 and 1.2.18, added functionality to display only changed values in SEO report - important keyprases
2 weeks ago from web

Minor fixes for JoomlaWatch version 1.2.17 (language files), you can find the latest package in customer zone ((link)
3 weeks ago from web

If you'd like to help with testing of the latest 1.2.18 BETA with new features (Joomla/Wordpress),please add me on skype: matto3c.Thank you!

New article on JoomlaWatch SEO (Search Engine Optimization) report functionality - (link)

JoomlaWatch 1.2.18 is out now! Features new click heatmap feature, SEO report - how people find you on google, and many other improvements

Reorganized the menu items. Now you'll be able to easily find most requested links

JoomlaWatch 1.2.18 BETA now ready! Main features: - Heatmap integration - SEO reports - Anti-spam section visualization (link)

Fixed one issue: no unique visits recorded; PHP $_SERVER['REMOTE_ADDR'] doesn't always return remote IP address! using HTTP_X_FORWARDED_FOR

Christmas Special - 19% OFF from all licenses until 25th of December 2011

JoomlaWatch Heatmap functionality nearly done. Works with all client resolutions. Will be available in next version. (link)

Simple customer zone - (link) is now ready. Users who purchased the PRO version can now download newest version from there.

Because of the problems with payments and forwarding. We are using (link) service to deliver you the files after purchase.

Tracking Expenses from SMS android application is now published on android market :) and it's completely free !

(link) user information now protected with UserCrypt 1.1



Partners:
Freelance ColdFusion, Flex, PHP

Olejomalby, abstraktne obrazy

Camping Europe

WinAsm Studio

Vyšné Ružbachy

Sochy, Reštaurovanie

R.E.M.

Valid XHTML 1.0 Transitional

RSS feed:

Statistics:
Search Engine Genie Promotion Widget
Privacy policy | Advertise | Donate

Locations of visitors to this page


©2003-2010 Codegravity.com