Friday, 31 July 2015

Difference between update() and merge() in Hibernate

Hibernate has different methods to save, fetch, update and delete object. Commonly or the most popular methods to update the data are update() and merge(). The update() method is widely used to update the record while the merge() method is less, because very few users has knowledge about the merge() method. Some of programmers having confusions where to use update() and where should use the merge() method.
In this article we will show you how update() is different from the merge() method. Difference between update() and merge() is as follows:
update() and merge() both methods are used to update the db row if it already exist. But if object does not exist in db already then the update() method will throw the exception while merge() will create the new entry in db for that object.

For full blog about Difference between update() and merge() method visit FindNerd.

Findnerd allow users to ask questions on various programming languages for ex- java questions and answers is one of them, and the best thing about FindNerd is- its response time.The developer community of FindNerd consists of experienced developers in various fields and are ready to help you.

Thursday, 30 July 2015

Important checkpoints before uploading the iOS App for Approval

Getting the approval from the Apple store for iOS App sometimes become a very difficult and long task. The reason for that is threefold:
  1. Due to Apple’s commitment to quality, they spend a lot of time to test and approve an App.
  2. The App’s lack of compliance on certain important guidelines laid out by Apple.
  3. The App’s lack of compliance on certain important guidelines NOT explicitly laid out by Apple but which still has a considerable impact on whether your App will be approved or not.
Here I’ll be focussing primarily on the third. From my experience, I’ve learnt that the following checkpoints need to be kept in mind before uploading an App on iTunes Connect.
To read this full blog on Important checkpoints before uploading the iOS App for Approval please visit FindNerd.
Apart from this you can also read such more important blogs in our Newest iPhone Development Blogs Section.

JQuery on() method

The on() method is used to attach one or more event handlers for the selected elements. It is designed to replace both the .bind() and .delegate() event handlers.
Syntax:
$(selector).on(event,childSelector,data,function,map)
where
PARAMETER
DESCRIPTION
Required/Optional
event
Can attach one or more events to the selected elements separated with spaces.
Required
childSelector
It determines that an event handler should attached to the specified child elements
Optional
data
For additional data
Optional
function
Specifies the function to run at the time when an event occurs
Required
map
Use to map one or more events to the selected elements and to run the function when events occur
Optional



To read full Article about JQuery on() method visit FindNerd.




Wednesday, 29 July 2015

Image splitting in Android

Image split can be required by different android puzzle application where there is a need to divide the one complete picture into different pieces.
Here is the function that takes three argument one is the imageview that holds your complete image and the other two are the number of rows and columns.
To read this full blog on Image splitting in Android please visit FindNerd.
Apart from this if you have any query regarding Android Programming you can ask your query at our Android Developer Forum & your query will be resolved by the experts here, in a very short span of time.

Send Push Notification with Custom Data to iPhone device from Java Server Side

This blog will help you to send Push Notifications with Custom data to iPhone devices from server side where server side code is written in Java.
Follow the below code in order to send Push Notification:
  1. Define the below dependency in your pom.xml, if you are using maven:
<dependency>    <groupId>com.github.fernandospr</groupId>    <artifactId>javapns-jdk16</artifactId>    <version>2.2.1</version></dependency>
Otherwise, put the JavaPNS_2.2.jar into your lib folder of your project.
  1. Send Push Notification with Custom Data to iphone device:
Write the following metthod to send Pust Notification with Custom Data to iphone devices:
FindNerd, known for its quick response time, when people ask questions on various platforms, as it is a good resource of Android, C, iPhone, Javascript, HTML, Java Questions & Answers, etc.


Tuesday, 28 July 2015

How to load a html page inside another html page in AngularJS

To load a html page inside another html page we usually go forhtml iframe tag in which we can either set HTML file path or any URL from different domain in src attribute. Ex.
<iframe src="http://findnerd.com"></iframe>
In AngularJS we can do that by using ng-include directive, where we can give the path of our HTML page and in will be rendered within the HTML page. Ex.
 <div ng-include="'myPage.html'"></div>
Here ng-include is expecting variable with the name of the file to include. To pass the name directly as a string, we use single quotes (' . . . ').
To view the full article about how to load a html page inside another html page in AngularJS Visit FindNerd.
FindNerd is providing programming queries solutions. Visit us to post your query of android, php, java, c,Javascript programming questions and answers etc., on ask question and get instant solution.



Monday, 27 July 2015

Versioning of An Object in Hibernate

As we know that the Hibernate API provide us to save, retrieve, update and delete data features, but it's not just that it provides more than that. In traditional database
programming what we do to check the data is being modified, answer is that we need to create an extra column for the modify status and every time the data is changed we need to fire a update query to update the modify status.

When we use versioning using hibernate, the first time when the object will save in the database, hibernate inserts zero as a value in version number field. And after every time when the object will update, hibernate will increment that version number by one automatically.

To know more about Versioning of An Object in Hibernate visit FindNerd.

You can also ask questions at findnerd related to android, php, c, java programming questions and answers etc., and get instant solutions of these queries.