Is there a class called Abstract Rest Application in Java?

|
Balu G 2022-09-26 09:34:32
For sample
My Life My Rules 2022-09-26 09:46:44
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

Explained very well. 👍👌

Chakradhar 2022-09-26 09:56:49
Can anyone share az900 latest dumps please?
S J. 2022-09-26 12:23:30
Hi all,I need help in java Spring Async method can anybody help.??
Hunglv201 2022-09-26 13:16:02
S J. 2022-09-26 12:23:30
Hi all,I need help in java Spring Async method can anybody help.??

what is your problem

techieuser 2022-09-26 13:32:37
any one Here from bangalore and working on java technologies
Akash 2022-09-26 14:19:29
Is there a class called Abstract Rest Application in Java ?
If yes can someone send this
rohan121a 2022-09-26 15:38:59
I am facing a problem.
My war is deployed on tocmat on a server.

I am getting respond when hitting through postman

But when i hit from Android app, request not even reaching server, is it something with tomcat. Pls help .

I have another application running on same ip but diff port, that port is working fine.

Frugalis Minds 2022-09-26 15:39:47
rohan121a 2022-09-26 15:38:59
I am facing a problem.
My war is deployed on tocmat on a server.

I am getting respond when hitting through postman

But when i hit from Android app, request not even reaching server, is it something with tomcat. Pls help .

I have another application running on same ip but diff port, that port is working fine.

Have u specified port correctly ?? On Android are u accessing by dns or ip

rohan121a 2022-09-26 15:41:12
Android i enter ip and port
rohan121a 2022-09-26 15:41:31
Yes in server XML port is correct, from postman getting response also
Frugalis Minds 2022-09-26 15:41:49
Are u having it on https ??
rohan121a 2022-09-26 15:41:53
No
Frugalis Minds 2022-09-26 15:42:18
Check if Java is blocking it .. u will get an exception ..send the expection
rohan121a 2022-09-26 15:42:38
The request not reaching server
Akash 2022-09-26 15:42:49
I’m getting a problem in pom.xml saying that NON resolvable parent POM.
Someone help me please
Frugalis Minds 2022-09-26 15:43:03
If so then it should throw some error on cosnisle
rohan121a 2022-09-26 15:43:03
I have similar application running on 8443 , request reaching server from Android …..but not with 8666
rohan121a 2022-09-26 15:43:32
Frugalis Minds 2022-09-26 15:43:03
If so then it should throw some error on cosnisle

I think it just times out …in Android it used volley /JSON object request

Frugalis Minds 2022-09-26 15:43:35
Akash 2022-09-26 15:42:49
I’m getting a problem in pom.xml saying that NON resolvable parent POM.
Someone help me please

Ur parent pom is invalid

Frugalis Minds 2022-09-26 15:44:28
Or parent pom not resolved ..try just running mvn clean install . Sometimes eclipse will show this kind of weird error
Frugalis Minds 2022-09-26 15:44:59
rohan121a 2022-09-26 15:43:32
I think it just times out …in Android it used volley /JSON object request

Do a telnet from ur system n chk the port and ip is reachable or nt

Akash 2022-09-26 15:46:22
Frugalis Minds 2022-09-26 15:44:28
Or parent pom not resolved ..try just running mvn clean install . Sometimes eclipse will show this kind of weird error

Still no help

Akash 2022-09-26 15:46:34
Akash 2022-09-26 15:46:22
Still no help

In vscode too same problem showing

rohan121a 2022-09-26 15:48:46
Frugalis Minds 2022-09-26 15:44:59
Do a telnet from ur system n chk the port and ip is reachable or nt

Yes reachable

suhendrayputra 2022-09-26 15:52:02
rohan121a 2022-09-26 15:38:59
I am facing a problem.
My war is deployed on tocmat on a server.

I am getting respond when hitting through postman

But when i hit from Android app, request not even reaching server, is it something with tomcat. Pls help .

I have another application running on same ip but diff port, that port is working fine.

is CORS enabled ?

harsh 2022-09-26 16:11:16
In ui
how can I create a textbox that takes only allowed values as mentioned in story.
Anyone?
harsh 2022-09-26 16:13:43
* while submitting a form
Arya 2022-09-26 16:21:57
Hi

Anyone works on springboot-kafka applications

S J. 2022-09-26 16:30:27
Hunglv201 2022-09-26 13:16:02
what is your problem

I have to implement batch and controller call the service should be async and the payload should return the status.

|