May 25, 2017
May 22, 2017
Amitabh Bachchan, Shabana Azmi, Sonu Nigam talk women empowerment
In the movie Bahubali 2, the character of Amarendra Bahubali played by Prabhas feels that merely chopping off the fingers of a man trying to grope women is not enough punishment. He beheads him as capital punishment. Now that can happen in the make-believe world of movies where things are often glorified and gory-fied. But in a dignified cultured society with better sensibilities, matters have to be drastically different.
May 19, 2017
Emma Watson’s dream comes true!
Emma Watson is much excited these days as her dream has come true! The actor has finally got a chance to work with her dream actor ‘Tom Hanks’ in their upcoming film “The Circle”.
The Harry Potter star confesses that it was an honour for her to share screen space with Hanks in their upcoming directoral by James Ponsoldt. Based on David Eggers’ book with same name, this techno-thriller hits Indian Cinemas under the banner of MVP Entertainment on May 19.
The Harry Potter star confesses that it was an honour for her to share screen space with Hanks in their upcoming directoral by James Ponsoldt. Based on David Eggers’ book with same name, this techno-thriller hits Indian Cinemas under the banner of MVP Entertainment on May 19.
May 18, 2017
May 17, 2017
May 15, 2017
RJ Malishka makes Bollywood debut with Vidya Balan's Tumhari Sulu..
The growing exciting cast of T-Series and Ellipsis Entertainment's Vidya Balan-starrer, Tumhari Sulu, has been in the news. From theatre ace Manav Kaul who will play Sulu's husband to the sexy Neha Dhupia who will essay the role of a radio boss, the quirky slice-of-life comedy, being directed by noted ad filmmaker Suresh Triveni, has become the talk of the town.
Is Shah Rukh Khan-luck rubbing off on Evelyn Sharma?
A week ago, the Yeh Jawaani Hai Deewani (YJHD) actress Evelyn Sharma was taken aback to find two fans from Punjab waiting for autographs and selfies outside her Bandra abode. When she was preparing to leave for a shoot, they walked up to her and told her they had been coming there from two days and standing below her building for a couple of hours to get a peek of the actress.
May 14, 2017
Popular TV stars describe their mom in one sentence..
On the occasion of Mother’s Day, we spoke to a few popular TV
celebs and asked them to describe their mom in one sentence. Here is
what they said:
Urvashi Dholakia, who will be soon seen in yet another power packed role in Ekta Kapoor's Chandrakanta affirmed that she has a great respect for all the mother's not just today but everyday. "As a child, we wake up every morning and get to work and start our day. But Mothers wake up and pray. They pray for our joyous life, they pray so that we can remain strong. If they sense any trouble coming at us, they cut it like a knife. We as children need to understand that she will 'always' be holding our hand," says Urvashi.
Urvashi Dholakia, who will be soon seen in yet another power packed role in Ekta Kapoor's Chandrakanta affirmed that she has a great respect for all the mother's not just today but everyday. "As a child, we wake up every morning and get to work and start our day. But Mothers wake up and pray. They pray for our joyous life, they pray so that we can remain strong. If they sense any trouble coming at us, they cut it like a knife. We as children need to understand that she will 'always' be holding our hand," says Urvashi.
May 11, 2017
May 10, 2017
Nadeem back with Suneel Darshan’s Ek Haseena Thi Ek Deewana Tha..
May 09, 2017
Urvashi Dholakia learns horse-riding for Chandrakanta..
Urvashi Dholakia, who played the iconic role of Komolika Basu in 'Kasautii Zindagii Kay' will be playing an antagonist in Ekta Kapoor’s upcoming show Chandrakanta.
She is playing a fearless, ambitious queen Iravati in the show, and is
required to ride a horse. To get into the skin of the character, she
went the extra mile and underwent extensive training in horse riding.
May 07, 2017
Hibernate Tutorial & Interview Questions And Answers
What is Hibernate?
Hibernate is an ORM tool and is used in the data layer of an application. It implements JPA (Java Persistence API), which is a set of standards that have been prescribed for any persistence implementation.
Hibernate is an ORM tool and is used in the data layer of an application. It implements JPA (Java Persistence API), which is a set of standards that have been prescribed for any persistence implementation.
#Part 8: Hibernate Interview Questions
Should all the mapping files of hibernate have .hbm.xml extension to work properly?
No, having .hbm.xml extension is a convention and not a requirement for hibernate mapping file names. We can have any extension for these mapping files.
No, having .hbm.xml extension is a convention and not a requirement for hibernate mapping file names. We can have any extension for these mapping files.
#Part 7: Hibernate Interview Questions ( N+1 problem)
What is N+1 SELECT problem in Hibernate? How to identify and resolve it?
The N+1 query problem happens when the data access framework executed N additional SQL statements to fetch the same data that could have been retrieved when executing the primary SQL query.
This N+1 query problem is not specific to JPA or Hibernate, it can be triggered using any data access technology, even with plain SQL.
The N+1 query problem happens when the data access framework executed N additional SQL statements to fetch the same data that could have been retrieved when executing the primary SQL query.
This N+1 query problem is not specific to JPA or Hibernate, it can be triggered using any data access technology, even with plain SQL.
May 06, 2017
#Part 6: Hibernate Interview Questions
What is the purpose of Session.beginTransaction()?
Hibernate keeps a log of every data exchange with the help of a transaction. Thereon, in case a new exchange of date is about to get initiated, the function Session.beginTransaction is executed in order to begin the transaction.
Hibernate keeps a log of every data exchange with the help of a transaction. Thereon, in case a new exchange of date is about to get initiated, the function Session.beginTransaction is executed in order to begin the transaction.
#Part 5: Hibernate Interview Questions (Composite and Derived Identifiers)
Composite Identifiers
Hibernate also allows us to define composite identifiers. FYI, a composite id is represented by a primary key class with one or more persistent attributes.
Here are the conditions which a primary class need to fulfil:
Hibernate also allows us to define composite identifiers. FYI, a composite id is represented by a primary key class with one or more persistent attributes.
Here are the conditions which a primary class need to fulfil:
- It should be defined using @EmbeddedId or @IdClass annotations
- It should be public, serializable and have a public no-arg constructor
- It should implement equals() and hashCode() methods
- The class's attributes can be basic, composite or ManyToOne while avoiding collections and OneToOne attributes.
#Part 4: Hibernate Interview Questions (Identifiers in Hibernate-JPA)
Generated Identifiers and Hibernate GeneratedValue Strategies
Hibernate provides a couple of generation strategies to generate a primary key in the database table. We can access the strategy with the help of @GeneratedValue annotation.
Hibernate provides a couple of generation strategies to generate a primary key in the database table. We can access the strategy with the help of @GeneratedValue annotation.
May 05, 2017
#Part 3: Hibernate Interview Questions (Mapping Relations)
How to achieve mapping in Hibernate?
Association mappings are one of the key features of Hibernate. It supports the same associations as the relational database model. We can map each of the below associations as a uni or bidirectional association.
Association mappings are one of the key features of Hibernate. It supports the same associations as the relational database model. We can map each of the below associations as a uni or bidirectional association.
- One-to-One associations
- Many-to-One associations
- Many-to-Many associations
#Part 2: Hibernate Interview Questions
What is the difference between save() , persist() and saveOrUpdate methods of session object?
- save() can only INSERT records but saveOrUpdate() can either INSERT or UPDATE records.
- session.save() saves the object and returns the id of the instance, whereas persist do not return anything after saving the instance. The return type of save() is a Serializable object, while return type of persist() method is void.
- persist() method guarantees that it will not execute an INSERT statement if it is called outside of transaction boundaries. save() method does not guarantee the same, it returns an identifier, and if an INSERT has to be executed to get the identifier (like "identity" generator), this INSERT happens immediately, no matter if you are inside or outside of a transaction.
- get() returns null if no data is present, whereas load throws ObjectNotFoundException exception in such case.
- get() always hits the database, whereas load() method doesn't hit the database.
- get() returns actual object, whereas load() return proxy without hitting the database unless required.
#Part 1: Hibernate Interview Questions
What is an ORM tool?
Object-relational mapping (ORM) is a technique that convert the data between relational databases and object oriented programming languages such as Java, C# etc. An ORM tool helps in simplifying data creation, manipulation, and access. It internally uses the Java API to interact with the databases.
Object-relational mapping (ORM) is a technique that convert the data between relational databases and object oriented programming languages such as Java, C# etc. An ORM tool helps in simplifying data creation, manipulation, and access. It internally uses the Java API to interact with the databases.
May 04, 2017
May 03, 2017
This is how yesteryear actress Mumtaz looks like..
Yesteryear actress Mumtaz, started her career as a child actress in Sone Ki Chidiya in 1958. After that the pretty actress had worked with most of the leading heroes and delivered numerous hits like Do Raste, Roti, Dushman, Apna Desh, Aap Ki Kasam, Sachcha Jhottha, Bharmchari, Hare Rama Hare Krishna etc.
May 02, 2017
Apache ANT Interview Questions And Answers
ANT stands for Another Neat Tool and is a Java based build tool from Apache Software Foundation. Apache Ant's build files are written in XML and they take advantage of being open standard, portable and easy to understand.
As a developer, we compile the code, package the binaries, deploy those binaries to the test server, test the changes and sometimes copy the code from one location to another. We can automate these tasks in a simplier way by using Apache Ant.
As a developer, we compile the code, package the binaries, deploy those binaries to the test server, test the changes and sometimes copy the code from one location to another. We can automate these tasks in a simplier way by using Apache Ant.
May 01, 2017
A Grateful Crow..
During summers, I keep some bowls of fresh water in the balcony for birds. Every day I rinse, and refilled them with fresh water. To be very frank, I have a super selfish motive behind this. I believe, our present time is seed time; in the other world we shall reap as we sow now. I am a water baby, I do this so that I will always get sheer abundance of water.
Subscribe to:
Posts (Atom)