<commit_before>spring-orm-eclipselink-sample
=============================

Demo of a JPA application using Spring Orm and Eclipselink under Service Mix, with MySQL or HSQLDB.


How to run the example:

# clone the repo
git clone https://github.com/cristcost/spring-orm-eclipselink-sample.git

# compile and install with maven
cd spring-orm-eclipselink-sample/
mvn clean install

# install the feature (in servicemix shell)
features:addurl mvn:net.cristcost.test.jpa/features/1.0-SNAPSHOT/xml/features

#TODO: work in progress<commit_msg>updated readme with instruction to execute the example<commit_after>spring-orm-eclipselink-sample
=============================

Demo of a JPA application using Spring Orm and Eclipselink under Service Mix, with MySQL or HSQLDB.


### How to run the example:

#### In command prompt:

clone the repo
```git clone https://github.com/cristcost/spring-orm-eclipselink-sample.git```

change database settings (see below)

compile and install with maven
```cd spring-orm-eclipselink-sample/
mvn clean install```

#### In Servicemix:

install the feature repository
```features:addurl mvn:net.cristcost.test.jpa/features/1.0-SNAPSHOT/xml/features```

install the feature
```features:install osgijpa-test```


The application insert a new row into the DB and starts updating it every 5 seconds, 
and remove the row when the applicaiton stops. The data into the DB looks like the following:

| id | calls | description | time | value |
| --- | --- | --- | --- | --- |
| id:09:05:28.350 | 158 | Previously invoked at 09:18:33.894 | 2013-08-14 09:18:38 | [BLOB - 34B] |

### How to change database settings:

TODO

{'fraction_non_alphanumeric': 0.13885505481120586, 'fraction_numerical': 0.025578562728380026, 'mean_word_length': 4.440397350993377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7670415', 'n_tokens_mistral': 554, 'n_tokens_neox': 507, 'n_words': 171}