Commit Graph

751 Commits

Author SHA1 Message Date
Mladen Savic 07af5a2687 insert null into Integer column using JDBC - code improvements 2021-06-03 12:26:02 +02:00
MeenaGawande 559d47a612 [BAEL-4958] JPA Unique Constraint (#10793)
* [BAEL-4958] JPA Unique Constraint

Defining Unique Constraints in JPA

* [BAEL-4958] JPA Unique Constraint

Changed the field name from pAddress to streetAddress

* [BAEL-4958] JPA Unique Constraint

Resolved conflicts

* [BAEL-4958] JPA Unique Constraint

Getters and setters are changed for address field

* [BAEL-4958] JPA Unique Constraint

Fixed Junits

* [BAEL-4958] JPA Unique Constraint

Fixed id field

Co-authored-by: MeenaGawande <MeenaGawande@users.noreply.github.com>
2021-06-01 21:52:34 -05:00
Mladen Savic 239da42aab insert null into Integer column using JDBC 2021-05-26 00:14:14 +02:00
Maciej Główka 27c53fd6de BAEL-4887: fetching multiple entities in JPA query (#10803) 2021-05-25 12:48:22 -07:00
johnA1331 a281d31d1b Update README.md 2021-05-20 01:32:52 +08:00
johnA1331 90c4e23932 Update README.md 2021-05-20 01:25:36 +08:00
johnA1331 823ec61b41 Update README.md 2021-05-20 01:16:34 +08:00
bfontana fcb1e38007 Merge pull request #10683 from hendrosteven/jpa-soft-delete
Adding soft delete
2021-05-17 00:05:05 -03:00
Eric Martin cfb8fe77b5 Merge pull request #10720 from polomos/BAEL-4900_attribute_overwrite
BAEL-4900 AttributeOverwrite explained
2021-05-16 14:01:40 -05:00
davidmartinezbarua cec301a797 Merge pull request #10706 from mladensavic94/master
BAEL-4898 - return an auto generated id
2021-05-16 10:12:12 -03:00
Hendro Steven 567a71fdbc remove comments 2021-05-13 19:13:06 +07:00
Jacek Polom a2bf1605fc BAEL-4900 Rename package name from overwrite to override, to be consist with annotation name. 2021-05-12 20:34:36 +02:00
johnA1331 f7ea846c94 Update README.md 2021-05-12 23:24:34 +08:00
Eric Martin 78f60acf3a Merge pull request #10722 from SmartyAnsh/BAEL-4921-mapping_arrays_with_hibernate
Bael 4921 mapping arrays with hibernate
2021-05-11 19:21:50 -05:00
sampadawagde ae27c57803 JAVA-5223: Fix formatting of POMs (Persistence Modules - Part 3) 2021-05-10 20:06:48 +05:30
sampadawagde c4cac4d381 JAVA-5223: Fix formatting of POMs (Persistence Modules - Part 2) 2021-05-10 20:06:19 +05:30
sampadawagde fa112ee5f8 JAVA-5223: Fix formatting of POMs (Persistence Modules - Part 1) 2021-05-10 20:05:39 +05:30
Hendro Steven 09eaca9914 remove mysql and using h2 db 2021-05-06 21:01:54 +07:00
Jacek Polom f9ae7b18a7 BAEL-4900 Code formatting fixed with intellij formatter 2021-05-04 20:20:34 +02:00
Anshul BANSAL b44d7b39a4 BAEL-4921 - renamed to ArrayMappingIntegrationTest 2021-05-04 07:10:43 +03:00
Anshul BANSAL 735a9e9360 BAEL-4921- fixed review comments 2021-05-04 06:46:34 +03:00
Jacek Polom 48aa7c5425 BAEL-4900 Code formatting fixed 2021-05-03 12:11:51 +02:00
Anshul BANSAL c764d5a8cb A print statement added in the catch 2021-05-02 14:21:35 +03:00
Anshul BANSAL 663adf48d2 A print statement added in the catch 2021-05-02 14:20:37 +03:00
Anshul BANSAL bb80ed7329 BAEL-4921 - Mapping Arrays with Hibernate 2021-05-02 14:19:29 +03:00
Anshul BANSAL 3bf380a464 BAEL-4921 - Mapping Arrays with Hibernate 2021-05-02 14:16:48 +03:00
Jacek Polom d34fdfd40a BAEL-4900 AttributeOverwrite explained 2021-04-29 21:20:09 +02:00
Mladen Savic 754a18a728 return auto generated ids 2021-04-27 12:34:05 +02:00
Hendro Steven e783f0c748 Adding soft delete 2021-04-22 09:43:02 +07:00
johnA1331 f7ed6da42b Update README.md 2021-04-14 23:45:18 +08:00
Eric Martin ae670c565c Merge pull request #10645 from abdallahsawan/BAEL-4121
Usage of the Hibernate @LazyCollection Annotation Article by Abdallah…
2021-04-10 17:29:29 -05:00
AbdallahSawan a9fbcbadec Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-04-11 01:01:57 +03:00
freelansam 60b6c6e6b6 Merge branch 'master' into JAVA-3576 2021-04-10 16:21:13 +05:30
Eric Martin 8c00c69fde Merge pull request #10494 from abdallahsawan/BAEL-4121
Usage of the Hibernate @LazyCollection Annotation Article by Abdallah…
2021-04-08 19:31:13 -05:00
Loredana Crusoveanu 913f2ce3aa Merge pull request #10622 from kwoyke/JAVA-3596
JAVA-3596: Upgrade exec-maven-plugin dependency
2021-04-07 10:24:58 +03:00
Loredana Crusoveanu 0315404617 Merge pull request #10627 from eugenp/update-tests
use junit 5, change log level
2021-04-03 12:10:07 +03:00
Loredana Crusoveanu 34e77a64a8 use junit 5, change log level 2021-04-03 12:06:08 +03:00
sampadawagde 7cbf13db95 JAVA-3576 - Align module names, folder names and artifact id 2021-04-02 22:46:25 +05:30
Krzysztof Woyke 63e5a2dad0 JAVA-3596: Clean up exec-maven-plugin config 2021-04-02 15:43:27 +02:00
Krzysztof Woyke e22ad64847 JAVA-5083: Fix unit tests in java-jpa-3 module 2021-04-01 23:31:16 +02:00
Loredana Crusoveanu 53eedb7ad5 Merge pull request #10614 from kwoyke/JAVA-3578
JAVA-3578: Sub-modules cleanup (pom.xml)
2021-04-01 18:46:22 +03:00
Krzysztof Woyke 273ffd5aba JAVA-3578: Ignore failing unit test in the java-jpa-3 2021-03-31 23:30:49 +02:00
johnA1331 457fc61bd5 Update README.md 2021-04-01 00:23:26 +08:00
johnA1331 f9f83d2305 Update README.md 2021-04-01 00:21:28 +08:00
Krzysztof Woyke 270f54dce6 JAVA-3578: Verify sub-modules - persistence-modules 2021-03-31 15:32:26 +02:00
Loredana Crusoveanu 2aad46fd00 Merge pull request #10607 from kwoyke/JAVA-3593
JAVA-3593: Upgrade byte-buddy to 1.10.22
2021-03-30 19:37:44 +03:00
Krzysztof Woyke f17aec8395 JAVA-3593: Use byte-buddy version inherited from the main pom.xml 2021-03-29 23:11:42 +02:00
Krzysztof Woyke 0ae1bfedde JAVA-4931: Cleanup surefire config. Part 2. 2021-03-29 18:57:35 +02:00
Loredana Crusoveanu eb35265244 Merge pull request #10594 from kwoyke/JAVA-4529
JAVA-4529: Rename some unit tests to integration tests
2021-03-29 14:59:58 +03:00
Loredana Crusoveanu d3317c4963 Merge pull request #10584 from kwoyke/JAVA-3295
JAVA-3295: POM Properties Cleanup
2021-03-29 14:57:35 +03:00
Loredana Crusoveanu 4879da3f3c Merge pull request #10576 from kwoyke/JAVA-3595
JAVA-3595: Upgrade jmh-core and jmh-generator dependencies in the main pom.xml
2021-03-29 14:37:34 +03:00
Greg 0d0b218079 Merge pull request #10545 from amitiw4u/BAEL-4798-CountQuery
Bael 4798 count query
2021-03-28 20:27:20 -04:00
Amitabh Tiwari 0b16b1440b Fixed review comments 2021-03-26 21:03:08 +05:30
Krzysztof Woyke a382f77a64 JAVA-3295: Remove redundant java.version property 2021-03-26 12:55:14 +01:00
Krzysztof Woyke bb8bac806a JAVA-4529: Rename some unit tests to integration tests 2021-03-26 10:57:39 +01:00
Krzysztof Woyke 6ef0632df2 JAVA-3295: Fix pom properties in persistence-modules 2021-03-24 12:32:33 +01:00
Krzysztof Woyke df93a6b9e6 JAVA-3295: Use project.build.sourceEncoding and project.reporting.outputEncoding from the main pom.xml 2021-03-24 09:37:43 +01:00
Krzysztof Woyke df68287728 JAVA-3595: Use jmh version defined in the parent pom.xml 2021-03-21 23:06:03 +01:00
kwoyke a0a766c123 BAEL-4852: Add IN example (#10568)
Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
2021-03-21 18:40:31 +01:00
mdabrowski-eu dd288575da BAEL-4789 Check if a database table exists (#10565)
* BAEL-4789 Check if a database table exists

* BAEL-4789 fix db credentials

* BAEL-4789 fix test method name
2021-03-21 18:38:10 +01:00
Kent@lhind.hp.g5 a83d25884e using query method 2021-03-10 11:28:43 +01:00
Amitabh Tiwari d010629fd5 Added changes to fix the tests 2021-03-09 20:23:15 +05:30
Amitabh Tiwari 2fff4d24c5 Added count queries 2021-03-07 16:43:52 +05:30
kwoyke 28cd4fa7ba BAEL-4194: Add example for not using the @Modifying (#10536) 2021-03-04 07:12:09 +01:00
Amitabh Tiwari 0900935000 Added tests for count 2021-03-01 09:05:25 +05:30
AbdallahSawan 8a004c459a Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-02-23 15:56:18 +02:00
AbdallahSawan 927b10e02e Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-02-23 15:51:13 +02:00
AbdallahSawan 342730c4a9 Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-02-16 15:48:06 +02:00
AbdallahSawan 5586a74acd Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-02-16 15:47:38 +02:00
AbdallahSawan 5f2ea49926 Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-02-16 11:41:27 +02:00
AbdallahSawan 34b1a35afb Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-02-16 11:31:04 +02:00
AbdallahSawan 13b16b915a Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-02-16 10:40:43 +02:00
AbdallahSawan 9b1388c6e2 Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan 2021-02-16 02:43:49 +02:00
kwoyke 153f600c62 BAEL-4758: Override autoIndexCreation in MongoConfig (#10474) 2021-02-10 07:51:44 +01:00
osser-sam cfbdbe1001 JAVA-4012: fix failing test (#10455) 2021-02-03 01:16:00 +05:30
sampadawagde 992a33fe7d JAVA-4012: clean-up 2021-01-24 23:46:39 +05:30
sampadawagde 0fe1563388 JAVA-4012: Moved 1 article from spring-data-mongodb to
spring-boot-persistence-mongodb
2021-01-24 23:40:00 +05:30
Loredana Crusoveanu 2d0d20d577 Merge pull request #10436 from sampada07/JAVA-4012
JAVA-4012: Split or move spring-data-mongodb module
2021-01-21 10:11:40 +02:00
sampadawagde a679b19978 JAVA-4012: removed entry for article 2021-01-20 22:39:36 +05:30
sampadawagde 52c492f679 JAVA-4012: README changes 2021-01-20 22:32:54 +05:30
sampadawagde c5a57eb065 JAVA-4012: Moved 1 article to spring-boot-persistence-mongodb 2021-01-20 22:31:35 +05:30
johnA1331 f7f017037f Update README.md 2021-01-20 22:46:34 +08:00
davidmartinezbarua 7b0ab83c8d Merge pull request #10389 from emyasa/BAEL-4601
[BAEL-4601] How to convert a Hibernate proxy to a real entity object
2021-01-17 18:52:17 -03:00
Emmanuel Yasa eddab4c557 [BAEL-4601] Revision: Simplifies assertions 2021-01-14 01:36:35 +08:00
Eric Martin f89f2b19a6 Merge pull request #10342 from amitiw4u/BAEL-4624-SpringTransactionRollback
Added changes to show transaction roll back
2021-01-12 19:40:36 -06:00
sampadawagde 3dbc22182f JAVA-3542: Added module to new parent's pom 2021-01-09 13:00:07 +05:30
sampadawagde dfe902f0a6 JAVA-3542: Moved spring-jooq inside persistence-modules 2021-01-09 12:59:21 +05:30
Loredana Crusoveanu d978e58367 Merge pull request #10405 from sampada07/JAVA-4216
JAVA-4216: Fix issue in jnosql-artemis project
2021-01-08 16:11:42 +02:00
sampadawagde 51189b8d40 JAVA-4216: Fix issue in jnosql-artemis project 2021-01-08 18:22:46 +05:30
Krzysiek ba5343cab2 JAVA-3585: Use common commons-io.version property in all child modules 2021-01-07 20:42:57 +01:00
sampadawagde e136bfb7df JAVA-4214: Fix issue with geodb repo 2021-01-07 11:06:50 +05:30
Amitabh Tiwari 3bf9bf4094 Added no roll back example 2021-01-05 20:17:31 +05:30
Krzysztof Woyke d8c26b6adb JAVA-3586: Get rid of the overriden commons-lang3.version property 2021-01-04 23:01:41 +01:00
Emmanuel Yasa 6daa38007c [BAEL-4601] How to convert a Hibernate proxy to a real entity object
* Adds Domain Models
* Adds Integration Tests
2021-01-05 01:35:53 +08:00
Krzysztof Woyke 3cb1b8536f JAVA-3586: Use commons-lang3.version property 2021-01-04 12:50:24 +01:00
Amitabh Tiwari 1b4e5782ec BAEL-4624: Review comments 2021-01-04 09:05:55 +05:30
Loredana Crusoveanu 4801636b3b Merge pull request #10332 from eugenp/JAVA-3570
JAVA-3570: Upgrade parent-boot-2 to Spring Boot 2.4.0
2020-12-30 11:40:44 +02:00
kwoyke 39390a1cb4 Merge pull request #10336 from kwoyke/JAVA-3496-2
JAVA-3496: Add integration tests for UserRepository
2020-12-29 23:40:38 +01:00
Krzysztof Woyke 962e8839d6 Merge remote-tracking branch 'upstream/master' into JAVA-3570 2020-12-29 15:11:31 +01:00
Krzysiek 061cf1a1ed JAVA-3496: Use a single common QueryApplication 2020-12-29 00:22:02 +01:00
Amitabh Tiwari d44dacaa2b Removed unwanted method 2020-12-26 06:14:52 +05:30
Amitabh Tiwari 2d2a64acbe Added changes to show transaction roll back 2020-12-25 09:06:51 +05:30
Krzysztof Woyke 6af6f685fd JAVA-3710: Replace hibernate-entitymanager dependency with hibernate-core 2020-12-24 13:07:07 +01:00
Krzysztof Woyke 95f98baeb3 JAVA-3710: Use hibernate-core in spring-jpa-2 2020-12-24 12:45:51 +01:00
Krzysztof Woyke a07556adaf JAVA-3710: Use hibernate-core in spring-jpa 2020-12-24 12:41:29 +01:00
Krzysztof Woyke 981ca0b506 JAVA-3496: Add integration tests for UserRepository 2020-12-23 11:05:24 +01:00
Krzysztof Woyke 515d213c90 Merge remote-tracking branch 'upstream/master' into JAVA-3570 2020-12-22 10:50:48 +01:00
johnA1331 42604275ff Update README.md 2020-12-16 17:24:51 +08:00
Eric Martin 50ba86c9dd Merge pull request #10314 from sk1418/jdbcurl2
[BAEL-4497] jdbc url
2020-12-13 11:47:08 -06:00
Kai Yuan 7afdb4cba7 [BAEL-4497] jdbc url 2020-12-13 17:22:09 +01:00
Krzysztof Woyke 8a264a9981 JAVA-3570: Fix unit tests in persistence-modules/redis 2020-12-11 13:16:09 +01:00
johnA1331 3b04af5f05 Update README.md 2020-12-09 18:17:32 +08:00
Emmanuel Yasa bc281bde2f [BAEL-4056] Guide to MultipleBagFetchException (#10304)
* Removes DummyEntity
* Uses Artist Entity instead of DummyEntity
2020-12-04 18:44:40 -08:00
Emmanuel Yasa cd6f187e0a [BAEL-4056] Guide to MultipleBagFetchException (#10294)
* Adds Domain Models
* Adds Integration Tests
2020-11-30 23:22:46 -08:00
johnA1331 f449b3cc37 Update README.md 2020-11-25 14:38:35 +08:00
Loredana Crusoveanu cd7c84e734 Merge pull request #10262 from johnA1331/master
BAEL-29326 - add links to github-baeldung articles
2020-11-19 20:58:30 +02:00
Cicio Flaviu a198814d31 [BAEL-4637] Performance difference between save() and saveAll() in Spring Data (#10177)
* [BAEL-4637] Performance difference between save() and saveAll() in Spring Data

* Apply suggestions from code review

* Rename IBookRepository.java to BookRepository.java
2020-11-19 15:48:03 +01:00
johnA1331 34e339767f Update README.md 2020-11-18 17:09:46 +08:00
johnA1331 dac7bca3bf Update README.md 2020-11-18 17:00:13 +08:00
Mateusz Szablak ad30d29ed6 BAEL-4723 Defining Indexes in JPA #2 (#10254)
* BAEL-4723 Defining Indexes in JPA

* unit -> integration test

* whitespaces fix

* tab to space

Co-authored-by: mateusz.szablak <mateusz.szablak@accenture.com>
2020-11-15 21:26:38 -08:00
kwoyke 810736bf23 BAEL-3565: Using enums in JPQL examples (#10248) 2020-11-14 00:28:03 +01:00
Mateusz Szablak 9bce552d6d BAEL-4723 Defining Indexes in JPA (#10247)
* BAEL-4723 Defining Indexes in JPA

* unit -> integration test

Co-authored-by: mateusz.szablak <mateusz.szablak@accenture.com>
2020-11-13 10:25:15 -08:00
johnA1331 c485b9b8d1 Update README.md 2020-11-11 21:32:16 +08:00
Jonathan Cook 0baaeb3f98 Merge pull request #10216 from emyasa/BAEL-4643
BAEL-4643: JPA CascadeType.REMOVE vs orphanRemoval
2020-11-11 11:46:00 +01:00
Jonathan Cook 75a4c2e95d Merge pull request #10219 from thejoeflow/BAEL-4635
[BAEL-4635] Tests for JPA Transient Annotation tutorial
2020-11-10 10:44:45 +01:00
Loredana Crusoveanu 65d2996c10 Merge pull request #10235 from johnA1331/master
BAEL-29324 - add links to github-baeldung articles
2020-11-06 12:41:55 +02:00
GilvanOrnelas bd6e3a5328 Fixing db indexing integration tests (#10229)
Co-authored-by: Gilvan Ornelas Fernandes Filho <gilvan.fernandes@bairesdev.com>
2020-11-06 09:04:33 +00:00
johnA1331 95cc0130a7 Update README.md 2020-11-05 14:10:38 +08:00
Emmanuel Yasa bc501e36b3 BAEL-4643: JPA CascadeType.REMOVE vs orphanRemoval
* Adds a test to OrphanRemovalIntegrationTest that expects a PersistenceException
2020-11-04 23:42:20 +08:00
Emmanuel Yasa 3139be9468 BAEL-4643: JPA CascadeType.REMOVE vs orphanRemoval
* Reformats code using the provided intelliJ-formatter.xml
2020-11-04 23:42:20 +08:00
Emmanuel Yasa 06c800c526 BAEL-4643: JPA CascadeType.REMOVE vs orphanRemoval
* Defines the Domain: ShipmentInfo, LineItem and OrderRequest entity
* Adds CascadeTypeRemoveIntegrationTest
* Adds OrphanRemovalIntegrationTest
2020-11-04 23:42:20 +08:00
joe 3686fa1cfb [BAEL-4635] Fixed tests and formatted per feedback 2020-11-02 22:05:46 -05:00
GilvanOrnelas d4a8a33604 Storing files indexed by a database (#10174)
Creating the FileLocationService to link the FileSystemRepository to the ImageDbRepository. Removing test order

Changing to BDDMockito

Changing Long wrapper for @id. Changing the test names to given-when-then pattern

Co-authored-by: Gilvan Ornelas Fernandes Filho <gilvan.fernandes@bairesdev.com>
2020-11-01 14:46:15 +00:00
joe 400cbb845d [BAEL-4635] Tests for JPA Transient Annotation tutorial 2020-10-29 20:17:31 -04:00
johnA1331 0c225ec742 Update README.md 2020-10-28 17:15:12 +08:00
johnA1331 8f28017782 Update README.md 2020-10-28 17:05:43 +08:00
johnA1331 3f049c51b5 Update README.md 2020-10-28 17:01:07 +08:00
johnA1331 c3474e7213 Update README.md 2020-10-28 16:24:05 +08:00
johnA1331 c8bd5248ed Update README.md 2020-10-28 15:45:12 +08:00
johnA1331 88820fbc63 Update README.md 2020-10-21 11:37:34 +08:00
johnA1331 e4430ea672 Create README.md 2020-10-21 11:28:46 +08:00
johnA1331 8af5182f92 Update README.md 2020-10-21 11:23:19 +08:00
Loredana e16eef7726 update jpa shared key 2020-10-20 12:33:13 +03:00
Loredana 90c65b0530 fix redis context test 2020-10-17 12:36:50 +03:00
Loredana Crusoveanu 5c29cbbb8d Merge pull request #10137 from catull/elmiminate-double-entry
Eliminate duplicate dependency spring-boot-starter-web
2020-10-16 19:05:14 +03:00
Umang Budhwar 5709eee956 BAEL-4475 (#10151)
* Added code for checking if a class is abstract or not.

* Renamed test name as per review comments.

* Added code to get database URL from Connection object.

* Refactored code to break lines.
2020-10-16 08:52:25 -05:00
Loredana 5a05897688 revert explicit junit, maven version overrides for boot projects 2020-10-14 16:16:17 +03:00
Loredana Crusoveanu ab7e2477d8 Merge pull request #10141 from johnA1331/master
BAEL-28473 - add links to github-baeldung articles
2020-10-09 16:05:20 +03:00
mdabrowski-eu 53609d6594 BAEL-4565 Object States in Hibernate's Session (#10107) 2020-10-09 07:59:51 +03:00
Jordan Simpson 7afe0a51ca Added "Unit" to the class name to satisfy the pmd.xml violation. 2020-10-08 08:42:56 -05:00