Question: [ 9 : 3 5 am , 1 4 / 5 / 2 0 2 4 ] Pallavi: John works on a code implemented using

[9:35 am,14/5/2024] Pallavi: John works on a code implemented using @Transactional annotation. Help him identify, which among the following are correct usages of this annotation?
(A)
Public interface DataStoreServices{
Void update DataStoreDetails(DataStore dataStore);
void insertDataStoreDetails (Datastore datastore);}
(B)
@Transactional
public class DataStoreServiceImpl {
public void updateDataStoreDetaila (DataStore datastore){//code goes here}
public void insertDataStoreDetails (DataStore datastore)(//code goes here
}
}
[9:36 am,14/5/2024] Pallavi: (C)
Public class DataStoreServiceImpl {
@Transactional
public void updateDataStoreDetails (DataStore datastore){
//code goes here
}
}
(D)
public class DataStoreServiceImpl {
public void updateDataStoreDetails (DataStore dataStore){
@Transactional
//code goes here
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!