Can anyone help me in batch?

|
Utk 2022-09-26 17:17:37
try with resources will only call close() method ?
Shailesh1357 2022-09-26 17:25:38
Guys anyone know postman api ?
shyam 2022-09-26 17:26:10
I need to add filter condition based on my request body
For ex: date or/and price range
shyam 2022-09-26 17:26:25
How to do that
Bhasker01 2022-09-26 17:27:49
Any one have idea about SPRING AOP ..
Shailesh1357 2022-09-26 17:28:15
Or else anyone share the login and signup page made in Angular , node.js or java , MySQL
shyam 2022-09-26 17:45:31
shyam 2022-09-26 17:26:10
I need to add filter condition based on my request body
For ex: date or/and price range

@Backhere bhai

JustAbstrac 2022-09-26 17:58:09
shyam 2022-09-26 17:26:10
I need to add filter condition based on my request body
For ex: date or/and price range

Use request body annotation, then use getter method of the pojo to get it’s value

Backhere 2022-09-26 18:22:09
shyam 2022-09-26 17:45:31
@Backhere bhai

after filter??

Backhere 2022-09-26 18:22:19
or just before filter
faisal_shopnil 2022-09-26 18:25:07
Bhasker01 2022-09-26 17:27:49
Any one have idea about SPRING AOP ..

yes..

faisal_shopnil 2022-09-26 18:26:19
shyam 2022-09-26 17:26:10
I need to add filter condition based on my request body
For ex: date or/and price range

U can javax validation on your pojo class flied.

& add @Valid on controller requestbody

Walter black 2022-09-26 19:14:45
Now I can’t do anything, how do I get back so I will commit with message again
spring_moments 2022-09-26 19:17:46
Hit i on keyboard
It will open an interactive window
Add a commit message

Then hit esc so it will be back to same screen
Then :wq
It will save and exit vim

Or else

:q now

Do it from git gui

spring_moments 2022-09-26 19:18:59
Walter black 2022-09-26 19:14:45
Now I can’t do anything, how do I get back so I will commit with message again

If just want to go back
:q

Walter black 2022-09-26 19:23:10
Thanks for the reply, if I hit i or type anything it’s printing on the screen
Walter black 2022-09-26 19:23:58
Not getting an other window
spring_moments 2022-09-26 19:24:00
Walter black 2022-09-26 19:23:10
Thanks for the reply, if I hit i or type anything it’s printing on the screen

It’s a commit message

Basically you are in vim editor

spring_moments 2022-09-26 19:24:18
Walter black 2022-09-26 19:23:58
Not getting an other window

:q

You do this , again you will be back in cli

abhi 2022-09-26 19:27:15
KK_01_K 2022-09-26 08:54:01
JDBC:-
Java Database Connectivity which is a specification for developing database applications with Java programming language.

The JDBC had several drawbacks
For example:
1. Boilerplate code (tedious code to work with data access Layer)
2. SQL exception-> Checked Exception so mandatorily needs to be handled.
3. Non portability because SQL codes are within the Java program; we can’t supply the SQL queries from outside the java program and also the SQL queries are database-specific.
4. Dialect issue in case of change of database
5. JDBC API can’t transfer the java objects directly
6. If the table structure is modified after the construction of Jdbc code then we must modify the sql queries again which is time consuming and burden for the java developer.
7. Manual resource clean up
8. Transactions must be handled manually

In order to overcome these problems spring JDBC was released.
It is an abstraction layer on top of jdbc technology.
Spring JDBC provides several methods to write the queries directly, so it saves a lot of work and time.
Spring JDBC however internally uses JDBC api only.

ORM:- (Object Relational Mapping) (To save the state of Java Objects into data base)
* It is a technique for converting/mapping data between java Objects and relational database
* Responsible for mapping the Domain Objects to Relational Model and vice versa

Why ORM?

Technical Differences between java Object and Relational Object
1. Granularity issue
2. Inheritance issue
3. Data Comparison issue
4. Data traversal difference

To overcome these technical problems, ORM was introduced.

They are several ORM tools available.

1. Hibernate
2. EclipseLink
3. OpenJPA
4. TopLink
5. Ibatis(MyBatis)

Which are all the implementations/JPA Providers/JPA vendors.

JPA (Java Persistence API) is a standard/specification/guidelines which are implemented/followed by all those ORM tools.

For easy understanding,
JPA is like an interface provided by the JCP( Java Community Process or Sun Microsystems (Oracle)) and ORM tools are the implementation classes

JPA facilities easy portability and migration.
With JPA, we can easily migrate from one JPA implementation to another JPA implementation.(Portability) (Loose Coupling)

Among all those JPA vendors, Hibernate (org.hibernate) is widely used because
1. It’s an Open source, publicly available without any cost and lightweight
2. Takes care of Auto Table Creation, Auto Primary Key generation
3. Provides Caching (Dual Layer caching) (first level and second level caching)
4. Supports Associations(mapping), inheritance, Joins
5. Provides Eager and lazy loading
6. Pagination support
7. Exception Handling is not mandatory.
8. Scalability
9. HQL (HIbernate Query Language) -> Database Independent Language
10. Transaction support
11. NativeSQL (we can write our SQL directly)
12. Locking -> Pessimistic and Optimistic Locking
13. Connection pooling mechanism for improving connection reusability
14. *Criteria API* which auto-generates *tuned Queries*

ORM tools however use the JDBC API internally

Der aaye durust aaye

Tega Peejay Java 2022-09-26 19:33:16
Damn
Sai .. 2022-09-26 19:37:03
Can any one help me how to add foreign key constraint using manytoone annotation?
JustAbstrac 2022-09-26 19:39:10
Sai .. 2022-09-26 19:37:03
Can any one help me how to add foreign key constraint using manytoone annotation?

Use @joincolumn

shyam 2022-09-26 19:48:20
shyam 2022-09-26 17:26:10
I need to add filter condition based on my request body
For ex: date or/and price range

By this I mean
In my request body user may or may not send some inputs like he need data before some date and price should be less then 1000 rs

This should not be delt with hibernate /jpa

And it is also possible that user will not these fields in request body itself

So my response should be based on his filter criteria

shyam 2022-09-26 19:48:52
List of predicates will be used in this case
Simran 2022-09-26 19:49:12
Can anyone help me in batch??
shyam 2022-09-26 19:51:50
Like same kind of stuff is used in elastic search
Kiran 2022-09-26 19:53:02
Simran 2022-09-26 19:49:12
Can anyone help me in batch??

Batch insert or update?

Simran 2022-09-26 19:56:05
Kiran 2022-09-26 19:53:02
Batch insert or update?

Read write and process

Kiran 2022-09-26 19:56:30
Simran 2022-09-26 19:56:05
Read write and process

Batch read?

|