@Temporal annotation in JPA implementation can only be used with the fields and property get methods. Also, this annotation can be specified for the persistent fields or properties java.util.Data or java.util.Calendar. This annotation is available since the release of JPA 1.0. @Temporal solves the one of the major issue of converting the date and time …
Java EE
JSTL Function fn:substring()
The <fn:substring()> is the string function of JSP Standard Tag Library(JSTL). This function is used to extract a string specified using the two index values that is start and end value. This function returns a substring with a specified position. Syntax of JSTL Function <fn:substring()> Example Details of the Code <c:set var=”str” value=”welcome to javabeat …
JSTL Function fn:startsWith()
The function <fn:startsWith()> is a string function of JSTL. This function is used to check the input string starts with the given specified character or prefix. It returns true if it contains specified character otherwise returns false. Syntax of JSTL Function <fn:startsWith()> Example of JSTL Function <fn:startsWith()> Details of the Code ${fn:startsWith(“JavaBeat”,’J’)} tag is used …
JSTL Function fn:split()
The JSTL Function <fn:split()> is the string function. This function is used to split or separate the string with specified delimiter(separator). JSTL Function <fn:split()> helps to split or separate a specified string into an array of substring. Syntax of JSTL Function <fn:split()> Example of JSTL Function <fn:split()> Details of the Code <c:set var=”name”> tag is …
JSTL Function fn:join()
The <fn:join()> is a string function of JSP Standard tag Library(JSTL).This function is used for joining all the elements of an array into a string with a specified operator and returns the output. This function returns string with all the elements of an array separated by a separator. Syntax of <fn:join()> function Example of <fn:join()> …
EclipseLink / JPA Annotations – @Embeddable, @Embedded and @EmbeddedId
We’ve been providing several examples so far, most of the examples are being provided weren’t use complex persistent entity states; we are using a primitive data types such (int, String, BigDecimal, Date and etc ..). But what’s happened if you we’ve created an entity whose persistent states are other types (classes). No doubt that it …
JSTL Function fn:indexOf()
The <fn:indexOf()> is a string function of JSTL. This function returns the index within a string of a specified substring. This function is used to get the first occurrence of the substring in the given string. This function takes string type as arguments and returns int type. Syntax of <fn:indexOf()> Tag Example Steps for Execution …
JSTL Function fn:escapeXml()
The <fn:escapeXml()> function is used to escape characters that could be interpreted as XML markup. This is a string function of JSTL. This function also used to replace all characters which have a special meaning in XML. The syntax of<fn:escapeXml()> Tag In this syntax string is of data type “String” it returns a string. Example …