Pages Navigation Menu

Coding is much easier than you think

rx online

Microsoft Office Graph API

Posted by on Mar 24, 2019 in Azure, Office 365 | 0 comments

Microsoft Office Graph API

rx online MS Graph acts as common service Endpoint to access all the services available in Office 365 using simple REST API calls. Developers can now consume data through a single public endpoint (https://graph.microsoft.com) – using simple REST calls or with an SDK available on just about any platform Permissions are secure, granted using OAuth protocols. Administrators can grant fine grained permissions (instead of global / service administrator or similarly elevated roles) to applications that are...

read more

How to Publish .NET Core solution to VSTS – Visual Studio Teams Service Online Git Repository using Git Command Line

Posted by on Jan 26, 2019 in Azure | 0 comments

How to Publish .NET Core solution to VSTS – Visual Studio Teams Service Online Git Repository using Git Command Line

rx online [5 mins read] In this tutorial, we will discuss about how to publish .NET Core solution to VSTS – Visual Studio Teams Service Online Git Repository using Git Command Line. Pre-requisitie- 1. Copy the Clone URL for your Git Repository. Incase, if you are new to VSTS, follow the steps in this link to Create Repository in Visual Studio Team Service(VSTS) online, 2. This tutorial assumes you already have an existing .NET project or Solution, which needs to be pushed. Incase, you dont have any project, create one in Visual Studio...

read more

Core Cloud Services – Azure data storage options

Posted by on Jan 21, 2019 in Azure | 0 comments

Core Cloud Services – Azure data storage options

rx online 3 mins In this Tutorial, we will discuss about the factious & advantages of Azure Data Storage Options over the Classical On-premise cost consuming Storage Model. So, What we will be reading for next 3 minutes. Yes! We will explore different Azure Data Storage Options, Comparison between Azure Data Storage & On-premise Data Storage Introduction: As Microsoft said their next 5 years will be heavily focused on Internet Of Things & Artificial Intelligence. To concur this, they have proposed strong Platform for storing Data...

read more

How to use JQuery dialog as Confirm dialog?

Posted by on Aug 14, 2015 in jQuery, jQuery UI | 0 comments

rx online   There are quite a few articles you might have read on SimpleCodeStuffs on jQuery like jQuery Tutorial for Beginners, AJAX implementation in Servlets using jQuery and jQuery UI etc.   This example will help you if you have any one of below queries: How to implement “confirmation” dialog in jQuery UI dialog? How to use jQuery UI dialog as JavaScript confirm BOX? How to use JQuery dialog as Confirm dialog? jQuery UI Replacement for alert() Issue: How many times did you have to code some confirmation logic on your...

read more

Configuring & Adding Primary Key to Collections in Hibernate

Posted by on Jun 6, 2015 in Hibernate, Hibernate Annotation | 0 comments

rx online   In previous article we learnt on how to persist a collection of objects of an entity class in a separate table using hibernate. And below are the following two tables are created in the database.     1. STUDENT for Student entity type object 2. Student_lisOfAddress for Address value type object (The default table name for this table gets generated based on – Entity class name_Name of the embeddable object in the entity class). Here ‘Student_ID’ column in Student_lisOfAddress is the foreign key...

read more

Saving Collections in Hibernate

Posted by on Jun 6, 2015 in Hibernate, Hibernate Annotation | 1 comment

rx online     In our last Hibernate article, we learned about Embedding value object into an entity class. In this article we’re going to focus on saving a Collection in Hibernate.   Consider a scenario where the student have lots of address. So in this case we need to create more no of embedded object in the student class, which is so tedious at certain point. In such case we can use Collection to solve this problem. This collection can be a list, set, map, collection, sorted set, sorted map. Hibernate provides the facility...

read more

Value object & Entity object in Hibernate mapping

Posted by on Jun 6, 2015 in Hibernate, Hibernate Annotation | 0 comments

rx online So far we have learnt how to write a model object and we learnt to annotate a model object so that hibernate create a table for us, then we learnt how to save, retrieve, update and delete the entity object in the database.     Still now we have created the entity class based on the assumption that each member variable inside the entity class will have a single column in database.   In Above table the type of fields of the class STUDENT CLASS is as below. ID is INTEGER type ...

read more

Composite Primary Keys In Hibernate

Posted by on Jun 2, 2015 in Hibernate, Hibernate Annotation | 0 comments

rx online   If the table has a primary key then in Entity class we configure that column using @Id annotation. Even when the table doesn’t need a primary key, we must configure one column as id (one primary key is must).   Now If the database table has more than one column as primary key then we call it as composite primary key, so if the table has multiple primary key columns , then in order to configure these primary key columns we need to create a new @Embeddable class containing the PK fields:   @Embeddable public...

read more

Auto Generate Primary key in Hibernate

Posted by on Jun 2, 2015 in Hibernate, Hibernate Annotation | 0 comments

rx online     In our early tutorials I have used @Id annotation to mark a particular field as primary key, this Primary key is used to fetch data via get or load method. And we set the value of primary key manually each time when we are about to create a new record.   In this article we shall learn to Auto Generate this Primary key value in Hibernate. Before getting into the above topic, let us have a discussion about Natural key and Surrogate key.   Natural Key   A natural key is a single column or set of columns...

read more

Difference Between Update and Merge methods In Hibernate

Posted by on May 29, 2015 in Hibernate, Hibernate Annotation | 4 comments

rx online     Often times, you will notice Hibernate developers mix use of session.update() and session.merge() At first look both update() and merge() methods seems similar because both of them are used to convert the object which is in detached state into persistence state, but the major difference between update and merge is that update method cannot be used when the same object exists in the session. Let’s look at those difference with simple example.   Example :-   Student current =...

read more