Lombok Maven javadoc:aggregate report with generated sources

I created a workaround build configuration that will create aggregated javadocs from generated sources, although the call sequence has two steps: mvn package mvn -N pre-site The build configuration is now published in Github. The current version only supports a project tree of depth one, but can of course be modified. It works by gathering … Read more

How to view “generated HTML code” in Firefox?

In Firebug’s HTML tab, right-click the root node and select “copy HTML”. Then paste to a text editor. Without Firefox Add-Ons, you could use a bookmarklet like this: javascript: var win = window.open(); win.document.write(‘<html><head><title>Generated HTML of ‘ + location.href + ‘</title></head><pre>’ + document.documentElement.innerHTML.replace(/&/g, ‘&amp;’).replace(/</g, ‘&lt;’) + ‘</pre></html>’); win.document.close(); void 0;

Generating DLL assembly dynamically at run time

using System.CodeDom.Compiler; using System.Diagnostics; using Microsoft.CSharp; CSharpCodeProvider codeProvider = new CSharpCodeProvider(); ICodeCompiler icc = codeProvider.CreateCompiler(); System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); parameters.GenerateExecutable = false; parameters.OutputAssembly = “AutoGen.dll”; CompilerResults results = icc.CompileAssemblyFromSource(parameters, yourCodeAsString); Adapted from http://support.microsoft.com/kb/304655

Lombok with hibernate

Sure! It works great from my experience. Here’s an example entity: @Entity @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class PingerEntity { // ID @Id @Getter @Setter @GeneratedValue(strategy = GenerationType.AUTO) private Long id; // USER @Getter @Setter @ManyToOne(fetch = FetchType.LAZY, optional = false) private UserEntity user; // URL @Getter @Setter @Basic(optional = false) private String url; /** * … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)