PK To jdbc/kursjavaDS false PK To()VCodeLineNumberTableLocalVariableTablethisLentity/MyEntity1;(IIII)VgetId()Ljava/lang/Long;setId(Ljava/lang/Long;)VgetN1()IsetN1(I)VgetN2setN2getRessetResgetCountsetCounttoString()Ljava/lang/String; tableLine SourceFileMyEntity1.javaLjavax/persistence/Entity; %& ! "! #! $! java/lang/StringBuilder MyEntity1{id= WX WY, n1= WZ, n2=, res=, count= W[ ;<  entity/MyEntity1java/lang/Objectappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;(I)Ljava/lang/StringBuilder;(C)Ljava/lang/StringBuilder;!e !"!#!$!%&'3*( ) *+%,'*****( !"#)4*+ !"!#!$!-.'/*(&) *+/0'>*+( *+)*+12'/*(.) *+34'>*( 23)*+ !52'/*(6) *+64'>*( :;)*+"!72'/*(>) *+84'>*( BC)*+#!92'/*(F) *+:4'>*( JK)*+$!;<'vLY *  *  *  *  * }(O) L*+=<'vLY *  *  *  *  *  (S) L*+>?@PK To;n1n2countidSLjavax/persistence/metamodel/SingularAttribute;()VCodeLineNumberTableLocalVariableTablethisLentity/MyEntity1_; SourceFileMyEntity1_.javaRuntimeVisibleAnnotations-Ljavax/persistence/metamodel/StaticMetamodel;valueLentity/MyEntity1; entity/MyEntity1_java/lang/Object!III I I   /*   cPK To()VCodeLineNumberTableLocalVariableTablethis Lp2/servlet1;doGetR(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Vrequest'Ljavax/servlet/http/HttpServletRequest;response(Ljavax/servlet/http/HttpServletResponse;outLjava/io/PrintWriter;fnameLjava/lang/String;lname StackMapTablegh ExceptionsijdoPostn1In2 myEntity1Lentity/MyEntity1;ekla SourceFile servlet1.java "#l mn firstnamek oplastnamejava/lang/StringBuilderHello, qr ! stg uvabc w#number1x yznumber2 { |} ~ entity/MyEntity1 " u p2/servlet1javax/servlet/http/HttpServletjava/io/PrintWriterjava/lang/Stringjavax/servlet/ServletExceptionjava/io/IOException%javax/servlet/http/HttpServletRequest&javax/servlet/http/HttpServletResponse getWriter()Ljava/io/PrintWriter; getParameter&(Ljava/lang/String;)Ljava/lang/String;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;toString()Ljava/lang/String;println(Ljava/lang/String;)Vclosejava/lang/IntegerparseInt(Ljava/lang/String;)Isession/MyEntity1FacadefindXY(II)Lentity/MyEntity1;getCount()IsetCount(I)Vedit(Ljava/lang/Object;)V(IIII)Vcreate! !"#$/*%& '()*$U,N+:+:--Y     - -%" JP T!&>U'(U+,U-.N/0D12:324J566789:*$(u,N+6+6*:`*Yh:*-h-%2 %&'!(.)3*?+K-^.g3p4t5&Hu'(u+,u-.n/0a;<!T=<.G>?4K@AB5C789DEPK To()VCodeLineNumberTableLocalVariableTablethis Lp2/servlet2;processRequestR(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)VrecordLentity/MyEntity1;outLjava/io/PrintWriter;request'Ljavax/servlet/http/HttpServletRequest;response(Ljavax/servlet/http/HttpServletResponse; StackMapTablepjqnrs ExceptionstudoGetdoPostgetServletInfo()Ljava/lang/String; SourceFile servlet2.java ()text/html;charset=UTF-8s vw xyp zwServlet servlet2java/lang/StringBuilder

Servlet servlet2 at {|r }F

~F $%  q entity/MyEntity1
 )java/lang/Throwable /0Short description p2/servlet2javax/servlet/http/HttpServletjava/io/PrintWriterjava/util/Iterator%javax/servlet/http/HttpServletRequest&javax/servlet/http/HttpServletResponsejavax/servlet/ServletExceptionjava/io/IOExceptionsetContentType(Ljava/lang/String;)V getWriter()Ljava/io/PrintWriter;printlnappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;getContextPathtoStringsession/MyEntity1FacadefindAll()Ljava/util/List;java/util/Listiterator()Ljava/util/Iterator;hasNext()Znext()Ljava/lang/Object;close addSuppressed(Ljava/lang/Throwable;)V!"#$%&'()*/*+, -./0*  ,,N:---- - - - Y +*:-:- Y ---P-D:8-1:::--:-+J$%'()$**+0,6-W.{/0123%34,4{1234-.56789N e:;<3[; F;H;=>?:;;; =>?@ABC0*I*+, + BC, -.5678@ABD0*I*+, + PQ, -.5678@ABEF*-!+Z, -.GHPK To;(Ljava/lang/Class;)VCodeLineNumberTableLocalVariableTablethisLsession/AbstractFacade;LocalVariableTypeTableLsession/AbstractFacade;(Ljava/lang/Class;)VgetEntityManager#()Ljavax/persistence/EntityManager;create(Ljava/lang/Object;)VentityLjava/lang/Object;TT;(TT;)Veditremovefind&(Ljava/lang/Object;)Ljava/lang/Object;id(Ljava/lang/Object;)TT;findAll()Ljava/util/List;cq*Ljavax/persistence/criteria/CriteriaQuery;()Ljava/util/List; findRange([I)Ljava/util/List;range[IqLjavax/persistence/Query;([I)Ljava/util/List;count()Irt!Ljavax/persistence/criteria/Root;&Ljavax/persistence/criteria/Root;(Ljava/lang/Object; SourceFileAbstractFacade.java a  %&b c( d0 .( /e fgh ijk lm no ipq r4s tu vu ?w xyjava/lang/Long z@session/AbstractFacadejava/lang/Object()Vjavax/persistence/EntityManagerpersistmerge7(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;getCriteriaBuilder.()Ljavax/persistence/criteria/CriteriaBuilder;*javax/persistence/criteria/CriteriaBuilder createQuery,()Ljavax/persistence/criteria/CriteriaQuery;(javax/persistence/criteria/CriteriaQueryfrom4(Ljava/lang/Class;)Ljavax/persistence/criteria/Root;selectR(Ljavax/persistence/criteria/Selection;)Ljavax/persistence/criteria/CriteriaQuery;J(Ljavax/persistence/criteria/CriteriaQuery;)Ljavax/persistence/TypedQuery;javax/persistence/TypedQuery getResultListjavax/persistence/Query setMaxResults(I)Ljavax/persistence/Query;setFirstResultP(Ljavax/persistence/criteria/Expression;)Ljavax/persistence/criteria/Expression;getSingleResult()Ljava/lang/Object;intValue! b **+  ! " # $%&'(_ *+   ! )*" # )+,-(` *+W   ! )*" # )+,.(h**+ "# !)*" #)+,/0U**+& !1*"  #234~0* L++*  W*+  *+ ,0 !!56" 0 #789L* M,,*  W*, N-+.+.d`W-+.W-01 2+3;4E5*L !L:;=56+!<=" L #>?@H* L+* M+*, W*+ N-9:;0<;=*H !956.AB; <="H #.ACDEFPK To()VfindXY(II)Lentity/MyEntity1;eLjava/lang/Exception;n1In2 StackMapTable6 Signature,Lsession/AbstractFacade; SourceFileMyEntity1Facade.javaLjavax/ejb/Stateless; entity/MyEntity1 9QSELECT myentity FROM MyEntity1 myentity WHERE myentity.n1=:n1 AND myentity.n2=:n2: ;<= >?@ AB CDjava/lang/Exceptionsession/MyEntity1Facadesession/AbstractFacade(Ljava/lang/Class;)Vjavax/persistence/EntityManager createQuery-(Ljava/lang/String;)Ljavax/persistence/Query;java/lang/IntegervalueOf(I)Ljava/lang/Integer;javax/persistence/Query setParameter?(Ljava/lang/String;Ljava/lang/Object;)Ljavax/persistence/Query;getSingleResult()Ljava/lang/Object;!  s/* 5*  -*  N)* "#$!%)"*&+'*+ --!"-#"$j%&'()*PK So servlet1 p2.servlet1 servlet2 p2.servlet2 servlet1 /servlet1 servlet2 /servlet2 30 PK So <% session.MyEntity1Facade f1; f1=(session.MyEntity1Facade)new InitialContext().lookup("java:module/MyEntity1Facade"); %> <%@page contentType="text/html" pageEncoding="UTF-8"%> JSP Page

Hello World!

<%=3+2%>
<% for(int i=0; i<5; i++){ %> Result: <%= i*i %>
<% } %> <%= f1.count() %> <% for(entity.MyEntity1 record: f1.findAll()){ out.println(record.tableLine()); } %>
PK So TODO supply a title
x
PK To