Hibernate - How to implement a 'Composite Key' : Suppose we have a Table in database which has many coulumns, among which two columns are PRIMARY KEY : UNIQUE_ID, NOTIFICATION_CHANNEL. We will write a separate Class which will contain these two columsn which are a part of COMPOSIT PRIMARY KEY. We will write a separate class for rest of the fields in that Table; and this class will also hold the reference of COMPOSIT PRIMARY KEY classs :->
Popular posts from this blog
RTC - Repository : How to Revert Back the Changes
HOW TO REVERT BACK THE CHANGES WHICH HAVE COMMITED INTO RTC REPOSITORY: = IN ECLIPSE Right click on the owning component in the Pending Changes view and select Show->History. The change set will appear in the History view. Right click on the change set and choose Discard... This will discard the change set from your workspace. So your workspace should now have all change from the stream *except* the one you want to remove. You can verify this by checking that your bad change set is the only thing you see Incoming. Right click on the component and choose "Replace in [your stream name]..." RTC (Jazz) : How to point your stream to different stream and take codes into your local: Example: you have local worskapce set up from dev stream, but now you have PATCH stream and want to take latest code. Go to ‘Pending Changes’ and select “Change Flow Target” to the required stream. How to remove namespace from xml file ? Step 1: ...
SonarLint & SonarQube implementation in your Project
SonarQube : SonarQube is very strong tool available for Code review. How to integrate the plugin into your Development studio, ie. Eclipse or STS. Go to, Eclipse -> Help -> Install New Software-> And enter there “http://downloads.sonarsource.com/eclipse/eclipse/” Checking the code ceoverage: Go to SonarQube view - > SonarLInt: http://eclipse.sonarlint.org/ Then Run the GREEN ALAYZE on SonarQube(that will be for SonarLint):-> Sometimes you might get SonarQube errors indicating you to change the code, which you might not want to do because of any reason. Then you can write //NOSONAR next to the line. This will discard the block or the line where you write this comment.
Comments