Hibernate : Adding an enum as a property

Using Hibernate Annotations: @Entity public class TestEntity {   @Enumerated(EnumType.STRING)    @Column(name=”ENUM_TYPE”)    private TestEnum testEnum;  } Using XML Based Mapping :   Add  hibernate-annotations.jar in your classpath during deployment but there’s no compile-time dependency: <property name=”testEnum” length=”30″ column=”testEnum” lazy=”false”> <type name=”org.hibernate.type.EnumType”> <param name=”enumClass”>test.TestEnum</param> <param name=”type”>12</param> <!– To store enum value as VARCHAR –> </type> </property>

YourKit

I found YourKit Java profiler is good for CPU and memory profiling of java applications. It gave better , useful & smarter details compared to other profilers.

Design Techniques

Some usefull java design techniques articles by Bill Venners http://www.artima.com/designtechniques/

Java in Telecommunications – Telemangement Forum and OSS/J

By Gero Vermaas Source:http://blog.xebia.com/2007/04/19/java-in-telecommunications-–-telemangement-forum-and-ossj/comment-page-1/#comment-8950 As promised in the first post in this series, we’ll now zoom in on the Telemanagement Forum (TMF) and OSS/J. This post will be a bit theoretical, but I promise that the next one will be more practical Telemanagement Forum is an organization that strives to improve the interoperability in the [...]

Java in Telecommunications – Introduction

By Gero Vermaas Source:http://blog.xebia.com/2007/03/30/java-in-telecommunications-introduction/ Why a blog on Java and telecommunications? There is no other industry for which the Java Community Process hosts so many specifications and I wonder if people are aware of this. Additionally, in May I’ll be doing a session on both JavaOne and Telemanagement World conferences. A nice trigger for a [...]

Java Virtual Machine (JVM) Heap Sizing

Report on JVM Heap sizing ( based on various web resources): 32-bit JREThe maximum theoretical heap limit for the 32-bit JVM is 4G. Due to various additional constraints such as available swap, kernel address space usage, memory fragmentation, and VM overhead, in practice the limit can be much lower. On most modern 32-bit Windows systems [...]

RMI Server API access on a Virtual Private Network (VPN)

When the Remote Server RMI API is accessed from a client on a Virtual Private Network (VPN), the VPN assigns an IP address to the RMI client machine. This VPN-assigned IP address needs to be specified in an RMI Java system property. If the RMI client is the Remote , then this property can be [...]

Follow

Get every new post delivered to your Inbox.