String or binary data would be truncated (hibernate, sql server 2008 R2)
String or binary data would be truncated. 主要是为SQL server 的,MySQL默认就会提示。 假如你有一个entity bean 之前配置如下: @Column(length=10) private String firstName; 需要改成如下配置才可以提示exception发生在那个column @Column @Length(max=10)...
View Article@Autowired @Inject @Resource
@Autowired and @Inject Matches by Type Restricts by Qualifiers Matches by Name AutowiredAnnotationBeanPostProcessor @Resource Matches by Name Matches by Type Restricts by Qualifiers...
View ArticleReplace matched lines in eclipse
Ctrl + F to open search dialog ^.*Column.*\r\n This will replace “Column” with empty line.
View ArticlePrinciples behind the Agile Manifesto
Principles behind the Agile Manifesto We follow these Principles: Our highest priority is to satisfy the customer through early and continuous delivery of valuable software. Welcome changing...
View ArticleBlock Kindle Special Offers – Easy and Free
Connect your Kindle to your computer with your USB cable. View your Kindle in Windows Explorer. Open the system folder and you’ll find an .assets folder. Delete the .assets folder. Create an empty...
View ArticleWhy do we make commitment
Creating a language of commitment my sound a bit of scary, but it can help solve many of communication problems programmers face today – estimations, deadlines, and face-to-face communication mishaps....
View ArticleHibernate javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not...
java.lang.Exception: Unexpected exception, expected<javax.validation.ConstraintViolationException> but was<java.lang.ExceptionInInitializerError> at...
View Article“No active host found” when running “docker-machine active”
Fix: $ eval $(docker-machine env)
View ArticleVirtualbox reduce swap size and increase size of root
Given I have installed ubuntu inside virtualbox. I used default installation, ubuntu give 10GB swap size, which is quite a waste. // turn off swap sudo swapoff -a //reduce size to 4G sudo lvreduce...
View ArticleLinux Chrome add SSL
certutil -d sql:$HOME/.pki/nssdb -L certutil -d sql:$HOME/.pki/nssdb -A -t P -n "websiteURL" -i ~/Desktop/chromeExport
View Article