blog.nutpan.com
adding set methods in JAXB for collections ~ Nutpan Blog
http://blog.nutpan.com/2012/05/adding-set-methods-in-jaxb-for.html
HTMLBee - Website Review Tool. JDoodle - Online Compiler for Java, C, C and many more. Wednesday, 16 May 2012. Adding set methods in JAXB for collections. Posted on 01:25by Nutpan. Normally the JAXB generated classes will not contain set methods for collections. (The idea here is to access collections only using get as the basis assumption is the change only happens to the contents of the collection). If you use the maven maven-jaxb2-plugin,. Then you can use collection-setter-. Mock Testing for Java Mail.
blog.nutpan.com
Is Chrome more secure than other Browsers in XSS attacks ~ Nutpan Blog
http://blog.nutpan.com/2012/09/is-chrome-more-secure-than-other.html
HTMLBee - Website Review Tool. JDoodle - Online Compiler for Java, C, C and many more. Monday, 3 September 2012. Is Chrome more secure than other Browsers in XSS attacks. Posted on 23:42by Nutpan. I come across one interesting thing today, looks like Chrome and Safari are more advanced in preventing XSS attacks than other browsers. To check this, write a small submit form as below. And a page to handle the submit. Open the first one in a browser - enter " script alert('hi.'); /script. IE, Firefox, Opera.
blog.nutpan.com
adding a new column as primary key in existing table ~ Nutpan Blog
http://blog.nutpan.com/2012/04/adding-new-column-as-primary-key-in.html
HTMLBee - Website Review Tool. JDoodle - Online Compiler for Java, C, C and many more. Thursday, 12 April 2012. Adding a new column as primary key in existing table. Posted on 03:18by Nutpan. Today I come across a little tricky situation to add new column to existing table and make it as a primary key in MS SQL server, the solution is luckily simple,. Alter table my table add [my new id] [int] IDENTITY(1,1); alter table my table add constraint pk my id primary key(my new id);. Mock Testing for Java Mail.
blog.nutpan.com
Liquibase Maven Plugin - Issue with non local database ~ Nutpan Blog
http://blog.nutpan.com/2012/03/liquibase-maven-plugin-issue-with-non.html
HTMLBee - Website Review Tool. JDoodle - Online Compiler for Java, C, C and many more. Sunday, 18 March 2012. Liquibase Maven Plugin - Issue with non local database. Posted on 02:37by Nutpan. There is an option in Liquibase to prompt for permission if the database it connects to is not in local system. To liquibase properties file, it is not changing its behavior, when we execute this in non head environments like unix, it does through following exception. At java.awt.GraphicsEnvironment. Just add the fo...
blog.nutpan.com
Backref Hibernate exception ~ Nutpan Blog
http://blog.nutpan.com/2012/02/backref-hibernate-exception.html
HTMLBee - Website Review Tool. JDoodle - Online Compiler for Java, C, C and many more. Tuesday, 7 February 2012. Posted on 02:39by Nutpan. One of the possible reasons for. Orghibernate.PropertyValueException: not-null property references a null or transient value: com.server.X. YBackref. Is cascading same data multiple time. For Example you have have two classes. List Car carsOwned;. It is because the same car is referred from two fields and both are trying to save/update. Mock Testing for Java Mail.
blog.nutpan.com
JDoodle.com - Online Java Compiler - Online Java Editor - Java Code Online ~ Nutpan Blog
http://blog.nutpan.com/2013/07/a-handy-tool-for-java-developers.html
HTMLBee - Website Review Tool. JDoodle - Online Compiler for Java, C, C and many more. Monday, 15 July 2013. JDoodle.com - Online Java Compiler - Online Java Editor - Java Code Online. Posted on 04:55by Nutpan. Helps compile and execute java programs online. It has simple interface, give a try, if found useful share with friends. Share your thoughts about JDoodle.com. Try some default shares. Hello World with method. Sample with import and Input Arguments. Some of the features you may like is. Recently i...
blog.nutpan.com
Hapijs in Openshift ~ Nutpan Blog
http://blog.nutpan.com/2015/02/hapijs-in-openshift.html
HTMLBee - Website Review Tool. JDoodle - Online Compiler for Java, C, C and many more. Saturday, 7 February 2015. Posted on 03:52by Nutpan. Today I tried to host a small Hapijs app in Openshift, as it may be useful for others just documenting here,. Creating new Gear with Nodejs cartridge in Openshift. Goto https:/ openshift.redhat.com/app/console/applications. Click Add application and add nodejs cartridge. Create a Hapijs Application. Clone the project just created in openshift. Npm install - save hapi.
blog.nutpan.com
Mock Testing for Java Mail ~ Nutpan Blog
http://blog.nutpan.com/2012/03/mock-testing-for-java-mail.html
HTMLBee - Website Review Tool. JDoodle - Online Compiler for Java, C, C and many more. Thursday, 1 March 2012. Mock Testing for Java Mail. Posted on 01:55by Nutpan. Testing the email related code comes with its own challenges,. We may need a dedicated test mail server with test mail box. Verification part of the test can not be executed right after the setup of test due to the latency in the mail delivery (due to milliseconds delay the test may fail). Setup and maintenance may cost its own penalties.