AngularJS to Angular-
AngularJS 2.XX does not exist, AngularJS 1.xx does.
Angular 1.XX does not exist, Angular 2.XX does.
Now, let’s see what are differences between Angular vs AngularJS.
2- MVC based 2- Components based
3- <tr ng-repeat=“student in studentsArray”> 3- <tr *ngFor=”let student in studentArray”>
4-<button ng-click=“vm.toggleImage()”> 4- <button (click) ==“vm.toggleImage()”>
5- ng-show, ng-hide 5- [hidden]
6- ng-if 6- *ngIf
7-ng-model 7- ngModel
AngularJs -Angular Timeline :
1– October 20, 2010 AngularJS
2– 22 September 2014 Angular 2
3– Angular 3 (skipped)
4– 13 December 2016 Angular 4
5– 1 November 2017 Angular 5
6– 3 May 2018 Angular 6
7– October 2018 Angular 7
8– May 2019 Angular 8
9– October/November 2019 Angular 9
Cache definition- Cache is a temporary data which is used to speed up the performance. Types of caching in hibernate- Caching LevelDefault OnSession-SpecificQuery Results CachedObjects EvictedConcurrent AccessUsageCode SnippetsFirst-level CacheYesYesNoYesThread-safeStoring and retrieving entities within a single session//Loading an entity from the first-level cacheSession session = sessionFactory.openSession();Employee employee = session.get(Employee.class, 1);Second-level CacheNoNoNoConfigurableConfigurabletoring and retrieving entities across multiple…
Mapping meaning in hibernate- Connection between java class to database tables Types of mapping in hibernate- 1- Inheritance Mapping- When java classes are having inheritance, their tables can be created using 3 ways- 1- Table per class hierarchy (Single Table Strategy) –Only one table is created for all the classes.-One Discriminator field is used.-xml element <subclass>…
Hibernate object states- StateDefinitionExampleCode SnippetTransientA transient object is an object that is not associated with a Hibernate session and has no representation in the database.A new instance of an entity class that has not been saved to the database yetPerson p = new Person();PersistentA persistent object is an object that is associated with a Hibernate…