Posts
Using Oracle With Sequence in Hibernate
Bibliography https://mkyong.com/jpa/jpa-insert-oracle-sequences-example/
https://www.youtube.com/watch?v=a0ScR_JAKfI https://thorben-janssen.com/free-member-library-2-ebooks-3-part-video-course-20-cheat-sheets/ https://thorben-janssen.com/hibernate-tips-map-native-query-results-entities/ and this: https://thorben-janssen.com/hibernate-tips-book/?utm_source=Youtube&utm_medium=tip
https://ntsim.uk/posts/how-to-use-hibernate-identifier-sequence-generators-properly
https://stackoverflow.com/questions/2155376/how-to-use-existing-oracle-sequence-to-generate-id-in-hibernate
https://thorben-janssen.com/hibernate-tips-use-custom-sequence/
https://vcfvct.wordpress.com/2016/05/24/jpa-hibernate-generatedvalue-with-sequence-on-oracle/
https://www.linkedin.com/pulse/hibernate-sql-sequence-avital-arvivo/
https://javabeat.net/jpa-annotations-generatedvalue-sequencegenerator-tablegenerator/
https://www.logicbig.com/tutorials/java-ee-tutorial/jpa/seq-generator.html
https://docs.oracle.com/javaee/5/api/javax/persistence/SequenceGenerator.html
https://coderanch.com/t/531100/databases/hibernate-oracle-sequence-produces-large
https://vladmihalcea.com/jpa-entity-identifier-sequence/
https://developer.jboss.org/thread/104030
https://community.progress.com/s/article/How-to-use-sequence-next-value-with-Spring-Data-JPA
https://www.oracle.com/middleware/technologies/ias/id-generation.html
google search
Posts
Create Postman Test Suite
Create Collection Click New button (on top left side) Click on Collection Button fill in form give the collection a name
Create a Request Click New button (on top left side) Click on HTTP Button In top left dropdown Select GET , POST ..tec Enter URL If needed click on Body click on raw enter JSON body text Press Save button Press Send button
Creating a test for your Request Open your Request In the menu under the URL click on Tests (menu option) In the Snippets dropdown select : Status code : Code in 200 (or other desired option) Press Save button Press Send button The test will run
Posts
Create Angular 17 Project
Bibliography A Deep Dive into Angular 17 Angular’s 17 HttpClient Complete Tutorial Building an Angular Open Source Library from Scratch! Angular 17: Things you should know about the new version Create Component In Angular 17 | How to Create a New Component in Angular 17 using the Angular CLI Angular 17 Tutorial #11 - Generate Components | Angular 17 Tutorial For Beginners Creating a Component in Angular 17 How to display components using their selector in Angular 17 Angular 17 Standalone Components: A Comprehensive Guide Angular 17 - Fix Missing app.
Posts
Build Quarkus REST CRUD Applications
We are going to assume you have created a database sakila We have created and empty database: sakila as a MariaDB Database
1. Create Qusrkus project Open the Quarkus Project Configurator : https://quarkus.io Click on the Start Coding button.
Select a quarkus version : 3.8 : (Recomended) LTS Release Please note that Quarkus v3 compatable to Hibernate >= v6 Set Group ID : za.co.nico Select Artifact: quarkus-crud-app (lowercase with dashes one word) Select Java Version: 17 Starter Code : Keep Selected Search Add : jdbc : add JDBC Driver : Ortacle / MySQL /MariaDB Search Add : hibernate pan : add Hibernate ORM with Panache (recomended for Quarkus) Search Add : jackson : add RESTEasy Reactive Jackson (recomended for creating REST Endpoints) Search Add : small : add SmallRye OpenAPI (recomended for using Swagger for testing the Endpoints) Click Generate your application : Select from Dropdown : Download as a Zip We will have these dependencies in the POM file (we decided to work with a dependency for : MariaDB)
Posts
Build Angular Frontend in Quarkus Project
1. Install NPM Node Package Manager Run these commands
sudo apt update sudo apt install npm -y npm --version 2. Install NodeJs Download Nodejs from : \ https://nodejs.org/en/download
For Ubuntu/Mint Linux: https://nodejs.org/dist/v20.11.1/node-v20.11.1-linux-x64.tar.xz
Run these commands
wget https://nodejs.org/dist/v20.11.1/node-v20.11.1-linux-x64.tar.xz sudo mkdir -p /usr/local/lib/nodejs sudo tar -xJvf node-v20.11.1-linux-x64.tar.xz -C /usr/local/lib/nodejs Run this command
nano ~/.bashrc Add this in the file
export PATH=/usr/local/lib/nodejs/node-v20.11.1-linux-x64/bin:$PATH Run these commands
source ~/.bashrc node --version npm --version 2.1 install ng Angular CLI: You can install Angular CLI globally using npm.
Posts
Apache Camel Processors
1. Introduction to Apache Camel Processors: Apache Camel is an open-source integration framework that facilitates the seamless integration of various systems, applications, and data sources. One of the core components of Apache Camel is its routing engine, which enables the creation of routes to define how messages should be routed from one endpoint to another.
Within these routes, Apache Camel provides a powerful concept known as Processors. Processors are fundamental building blocks used to manipulate, transform, or enrich messages as they flow through Camel routes.
Posts
Installing GraalVM on Linux
1. Download the Archive File Navigate to: https://github.com/graalvm/graalvm-ce-builds/releases
1.1 For JDK21 If you are using JDK21 download this file: https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.0/graalvm-community-jdk-21.0.0_linux-x64_bin.tar.gz Instructions can be found here: https://www.graalvm.org/latest/docs/getting-started/linux/
1.2 For JDK17 If you are using JDK17 download this file: https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-x64_bin.tar.gz Instructions can be found here: https://www.graalvm.org/23.0/docs/getting-started/linux/
2. Installing GraalVM from the downloaded file sudo su - mkdir /opt/graalvm cd /opt/graalvm mkdir /opt/graalvm/graalvm17 mkdir /opt/graalvm/graalvm21 cd /opt/graalvm/graalvm17 cd /opt/graalvm/graalvm21 # Copy downloaded archive file here (we downloaded this file: graalvm-community-jdk-17.
Posts
CAMEL QUARKUS EXTENSIONS REFERENCE
Camel Documentation https://camel.apache.org/docs/
1. CAMEL QUARKUS EXTENSIONS REFERENCE https://camel.apache.org/camel-quarkus/3.5.x/reference/index.html
1.1 ActiveMQ https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/activemq.html
1.2 Barcode https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/barcode.html
1.3 Base64 https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/base64.html
1.4 Bean https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/bean.html
1.5 BROWSE https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/browse.html
1.6 Cron https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/cron.html
1.7 CSV https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/csv.html
1.8 DEBEZIUM MYSQL CONNECTOR https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/debezium-mysql.html
1.9 DEBEZIUM POSTGRESSQL CONNECTOR https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/debezium-postgres.html
1.10 Dropbox https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/dropbox.html
1.11 EXEC https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/exec.html
1.12 File https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/file.html
1.13 FTP https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/ftp.html
1.14 Google Drive https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/google-drive.html
1.15 Google mail https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/google-mail.html
1.16 HTTP https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/http.html
1.17 Jacson XML https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/jacksonxml.html
1.18 JDBC https://camel.apache.org/camel-quarkus/3.5.x/reference/extensions/jdbc.html
Posts
To Create a Quarkus Project
https://www.baeldung.com/quarkus-io
Method 1 create a new Quarkus Project using mvn command 1. Create Quarkus Project using Maven mvn io.quarkus:quarkus-maven-plugin:0.13.1:create \ -DprojectGroupId=com.dessertmenu.quarkus \ -DprojectArtifactId=quarkus-project \ -DclassName="com.dessertmenu.quarkus.DessertMenuResource" \ -Dpath="/dessertmenu" You should get this:
. ├── quarkus-project │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ │ ├── docker │ │ │ ├── Dockerfile.jvm │ │ │ └── Dockerfile.native │ │ ├── java │ │ │ └── com │ │ │ └── dessertmenu │ │ │ └── quarkus │ │ │ └── DessertMenuResource.
Posts
Apache Camel File_Copy
Create a Java Project
To create a new Quarkus Project that mvn passes the first time Create Quarkus Application Connecting to Kafka Topics
quarkus create app za.co.quarkus.camel.kafka:quarkus-camel-kafka-new:1.0 What is Apache Camel Apache Camel is an open-source integration framework. It facilitates the seamless connection of different systems and applications. It offers a versatile platform for defining, routing, and transforming data. It simplifies the integration of disparate endpoints. Aids in building robust and adaptable integration solutions.