52 Commits

Author SHA1 Message Date
Priyesh Mashelkar
cac62f06ae BAEL-2344 Hibernate Named Query (#5835)
* Added writer

* Added implementation and test class

* Added more details

* Updated tests

* Updated code as per review comments

* Added test class and one named query

* Updated test class

* Added update HQL

* Added new initialisation script and new queries

* Corrected queries

* Removed commented code

* printf examples

Issue: BAEL-2228

* Update README.md

* Added implementation and test class

* Added more details

* Updated tests

* Updated code as per review comments

* Added test class and one named query

* Updated test class

* Added update HQL

* Added new initialisation script and new queries

* Corrected queries

* Removed commented code
2018-12-05 10:30:14 -08:00
amit2103
682f93885b [BAEL-9696] - Fixed conflicts and moved new code changes 2018-10-21 11:48:52 +05:30
amit2103
73808691af Merge branch 'master' of https://github.com/eugenp/tutorials into BAEL-9696 2018-10-21 11:32:30 +05:30
amit2103
6c1722a5a2 [BAEL-9696] - Moved persistence-related modules into the persistence folder 2018-10-20 23:41:12 +05:30
Chirag Dewan
9a6ce97d48 BAEL-1708 Custom Types in Hibernate 2018-10-13 11:24:04 +05:30
Nikhil Khatwani
6612e5d99c Changes for BAEL-2243 2018-10-09 23:48:39 +05:30
Nikhil Khatwani
a0d084751a Changes for BAEL-2243 2018-10-09 23:47:04 +05:30
j-bennett
e92e71df1c BAEL-1876: Hibernate 5 Naming Strategy Configuration (#5158) 2018-10-05 07:00:45 -07:00
Josh Cummings
9a085b0e8f
Polish Session.load Tests (#5378)
Cleaned up some confusing wording and a confusing test. Added two more
tests for demonstrating how session.load works with associations.

Issue: BAEL-2126
2018-10-02 07:22:12 -06:00
Felipe Santiago Corro
8a5d9843f6 Class Refactor (#5374)
New tests in Hibernate with proxy
2018-10-01 19:42:46 -07:00
Priyesh Mashelkar
e146c2af4e
Merge branch 'master' into master 2018-09-11 13:26:12 +01:00
priyeshmashelkar
dbdbe79910 Renamed Manager to DeptEmployee 2018-09-11 10:46:05 +01:00
Felipe Santiago Corro
50f0d57182 Proxy in Hibernate load() method (#5222) 2018-09-10 14:01:47 -07:00
priyeshmashelkar
a50baf1be3 Added tests 2018-09-05 17:27:25 +01:00
Priyesh Mashelkar
fbe433ebb4 Added Result 2018-09-05 00:13:08 +01:00
Priyesh Mashelkar
4798036089 Added entities and basic select 2018-09-04 00:01:25 +01:00
Tom Hombergs
0d56c806e5
Merge pull request #5016 from MajewskiKrzysztof/BAEL-2097
BAEL-2056
2018-08-28 21:28:58 +02:00
Krzysztof Majewski
86b279ee20 add .java extension 2018-08-27 08:43:12 +02:00
Krzysztof Majewski
cc4b50a0d8 BAEL-2097 add integration test 2018-08-25 14:26:23 +02:00
sachin
fb0023286a BAEL-7674: Let's make sure our logging configuration has the same pattern 2018-08-21 18:22:53 -04:00
Krzysztof Majewski
82ad3bde94 BAEL-2097 add Address entity 2018-08-20 21:51:20 +02:00
Krzysztof Majewski
b27d20a46a
Delete Address.Java
Remove file with wrong extension
2018-08-20 21:50:24 +02:00
Krzysztof Majewski
3d09c6056a BAEL-2097 fix 2018-08-20 21:46:55 +02:00
Krzysztof Majewski
05d7d54131 BAEL-2056 2018-08-20 21:24:50 +02:00
bungrudi
3f2271f51b BAEL-2043: An Intro to Hibernate Entity Lifecycle (#4960)
* "An Intro to Hibernate Entity Lifecycle"

"An Intro to Hibernate Entity Lifecycle"
by Rudi

* Revision from Predrag's feedback

* Another revision from Predrag's feedback

* Another feedback.
2018-08-15 15:23:19 +02:00
Eugen Paraschiv
83f8e36cb4 logging cleanup 2018-07-20 13:33:45 +03:00
Dhawal Kapil
8270c6d61a BAEL-1987 Fix Tests and Compilation In All Projects (#4693)
* BAEL-1987 Fix Tests and Compilation In All Projects

-Fixed various compilation issues, test assertions throughout the project.

* Update pom.xml
2018-07-13 00:07:27 +02:00
Patryk Kucharz
fc14d426c5 BAEL-1730: Optimistic Locking in JPA
Tests for the article.
2018-06-13 21:08:47 +01:00
Alejandro Gervasio
eeb7d1c68e Initial Commit (#4427) 2018-06-09 19:56:29 -05:00
Patryk Kucharz
fd11e089fe BAEL-1713: Pessimistic Locking in JPA
Improvments for tests.
2018-05-10 20:56:37 +02:00
Patryk Kucharz
c0c319b13f BAEL-1713: Pessimistic Locking in JPA
Tests for the article.
2018-05-10 15:29:07 +02:00
sasdroid
e6360db343 Add code for article "Mapping LOB Data in Hibernate" (#3778)
* Add lob example

* Migrate the XML Based Configuration to Java Based Configuration
2018-03-12 18:18:55 +01:00
Marcos Lopez Gonzalez
2399b4d817 BAEL-1509 jpa attribute converters (#3599)
* fix converter

* fix converter

* fix converter

* fix converter + more tests
2018-02-24 08:15:52 +01:00
Marcos
796277bdaa fix assert 2018-02-04 14:06:11 +01:00
Marcos
0bf3102188 code cleanup 2018-02-03 19:25:48 +01:00
Marcos
ecf1cae3f7 JPA Attribute Converters 2018-02-03 19:01:20 +01:00
Grzegorz Piwowarek
710c25fb01
Ocheja fix (#3572)
* Define beans for handling different message types in a lean chat app

* Add class based spring beans configuration

* Define spring configuration in XML for constructor based bean injection

* Refactor package structure to separate constructor based bean injection code set from setter based bean injection code set

* Define configuration and classes specific to setter-based bean injection.

* Implement tests for constructor-based and setter-based bean injections

* develop codes for explaining type erasure

* Write unit tests for type erasure examples

* Remove evaluation article code

* Modify type erasure examples and unit tests

* Modify type erasure examples and unit tests

* Add expected exception in TypeErasureUnitTest

* Correct grammar in class name

* Implement File Manager app to demonstrate Polymorphism. Develop unit tests for Polymorphism article code

* Add examples for static polymorphism

* Change sysout statments to slf4j log info statements

* Add assertions and expected errors check on Test

* Add assertions and expected errors check on Test

* Correct compile time error of symbol not found

* Removed commented out non-compiling test.

* Replace string concatenations with String.format

* Replace string concatenations with String.format

* Remove verbose file info descriptor and replace with simpler one

* Add example codes for Hibernate Interceptors article
Write tests for session-scoped and sessionFactory-scoped interceptors

* Implement serializable on customInterceptorImpl

* Implement examples for spring data with spring security integration

* Remove webapp example implementations; too extensive
2018-02-03 12:37:28 +01:00
Jose Carvajal
23f7f658e4 BAEL-399 A Guide to Multitenancy in Hibernate 5 (#3323)
* BAEL-399: A Guide to Multitenancy in Hibernate 5

* Removed unused properties in profile 2

* Changes after code review
2017-12-31 17:28:27 -06:00
ocheja
c52b2a4ff3 BAEL-1440 (#3320)
* Define beans for handling different message types in a lean chat app

* Add class based spring beans configuration

* Define spring configuration in XML for constructor based bean injection

* Refactor package structure to separate constructor based bean injection code set from setter based bean injection code set

* Define configuration and classes specific to setter-based bean injection.

* Implement tests for constructor-based and setter-based bean injections

* develop codes for explaining type erasure

* Write unit tests for type erasure examples

* Remove evaluation article code

* Modify type erasure examples and unit tests

* Modify type erasure examples and unit tests

* Add expected exception in TypeErasureUnitTest

* Correct grammar in class name

* Implement File Manager app to demonstrate Polymorphism. Develop unit tests for Polymorphism article code

* Add examples for static polymorphism

* Change sysout statments to slf4j log info statements

* Add assertions and expected errors check on Test

* Add assertions and expected errors check on Test

* Correct compile time error of symbol not found

* Removed commented out non-compiling test.

* Replace string concatenations with String.format

* Replace string concatenations with String.format

* Remove verbose file info descriptor and replace with simpler one

* Add example codes for Hibernate Interceptors article
Write tests for session-scoped and sessionFactory-scoped interceptors
2017-12-29 19:51:24 +01:00
Jose Carvajal
85f12cd254 BAEL-399: A Guide to Multitenancy in Hibernate 5 (#3235)
* BAEL-399: A Guide to Multitenancy in Hibernate 5

* Removed unused properties in profile 2
2017-12-23 17:23:21 -06:00
YasinBhojawala
f9f5a82cf4 BAEL-1334 Guide to Hibernate Spatial (#3211)
* BAEL-1334 Guide to Hibernate Spatial

* BAEL-1334 Guide to Hibernate Spatial

Moving the files to hibernate5 from libraries

* Reverting the pom file

* BAEL-1334 Guide to Hibernate Spatial

* BAEL-1334 Guide to Hibernate Spatial

Moving the files to hibernate5 from libraries

* Reverting the pom file

* BAEL-1334 Guide to Hibernate Spatial

Improved assertions

* Add examples related to circle
2017-12-10 09:17:49 +01:00
Yasin
c01c2266b8 BAEL-1334: Guide to Hibernate Spatial (#3183)
* BAEL-1334 Guide to Hibernate Spatial

* BAEL-1334 Guide to Hibernate Spatial

Moving the files to hibernate5 from libraries

* Reverting the pom file

* BAEL-1334 Guide to Hibernate Spatial

* BAEL-1334 Guide to Hibernate Spatial

Moving the files to hibernate5 from libraries

* Reverting the pom file

* BAEL-1334 Guide to Hibernate Spatial

Improved assertions
2017-12-03 12:21:42 +01:00
Yasin
a94f98b631 BAEL-1334 Guide to Hibernate Spatial (#3139)
* BAEL-1334 Guide to Hibernate Spatial

* BAEL-1334 Guide to Hibernate Spatial

Moving the files to hibernate5 from libraries

* Reverting the pom file
2017-12-01 09:40:03 +01:00
Loredana Crusoveanu
b567fba474 Bael 1337 (#3072)
* inheritance ex

* add more ex and tests, formatting
2017-11-22 13:22:59 +01:00
Loredana Crusoveanu
c9aaa0d993 hibernate identifiers examples (#2977)
* hibernate identifiers examples

* fix conflict

* change to longstream

* change to format
2017-11-10 12:33:52 +01:00
Sergey Petunin
bc899ef38f BAEL-1221: Added README.md with build and run instructions (#2947)
* BAEL-1221: Added README.md with build and run instructions

* BAEL-1281: Hibernate - Mapping Date/Time values (java.util and java.time)
2017-11-04 05:50:01 -05:00
Сергей Петунин
7ee0ac104d BAEL-1280: Fixed sample code issues 2017-10-29 14:06:46 +01:00
Сергей Петунин
568198fed9 BAEL-1280: Mapping Dynamic Values (@Formula, @Filter, @Any, @Where) 2017-10-29 11:43:19 +01:00
Parth Joshi
5b0302524f Added DAO for Supplier (#1950)
* First commit for Hibernate 5 Multitenancy tutorial

* Changes to fix the code.

* Added hibernate begin transaction code.

* Changes to solve the multitenancy issue.

* Changes to integrate h2

* Changing configs to solve the error

* Changes to solve h2 error...

* Changes to fix H2 error.

* Cleaned POM.xml and changed entity name

* Changes table name to supplier

* Removed MySql Dep from pom.xml.

* Changes as per comment in the PR...

* Removed try-catch from test functions.

* Removing the hibernate xml config.

* Changed the formatting as per the formatter.

* Clean up after merge.

* # WARNING: head commit changed in the meantime

Merge remote-tracking branch 'upstream/master' into
hibernate5-multitenancy

Conflicts:
	hibernate5/pom.xml
	pom.xml

* Introduced Supplier DAO

* shifting hibernate properties to src/test/resouces

* removed the old test.

* Filled up the stubs in the DAO.
2017-06-02 22:18:15 -05:00
Parth Joshi
efd2c2bd34 Hibernate5 multitenancy changing to hibernate.properties config file. (#1881)
* First commit for Hibernate 5 Multitenancy tutorial

* Changes to fix the code.

* Added hibernate begin transaction code.

* Changes to solve the multitenancy issue.

* Changes to integrate h2

* Changing configs to solve the error

* Changes to solve h2 error...

* Changes to fix H2 error.

* Cleaned POM.xml and changed entity name

* Changes table name to supplier

* Removed MySql Dep from pom.xml.

* Changes as per comment in the PR...

* Removed try-catch from test functions.

* Removing the hibernate xml config.

* Changed the formatting as per the formatter.

* Clean up after merge.

* # WARNING: head commit changed in the meantime

Merge remote-tracking branch 'upstream/master' into
hibernate5-multitenancy

Conflicts:
	hibernate5/pom.xml
	pom.xml
2017-05-28 11:43:31 -05:00