首页上一页 1  下一页尾页 1 条记录 1/1页
        Java Web编程宝典第24章这几个类
                 	
                        发表在JavaWeb图书答疑
                        2012-04-17                                                
                    		
                                                                            	
                        
                        
                    
                    
                    	是否精华
                    	是
                    	否
                    
                    
                    
                            版块置顶:
                            是
                            否
                        
                    
                                           可不可以详细解释一下时,Java Web编程宝典第24章里,
为什么要使用
com.lyq.util.hibernate.EnumType
com.lyq.util.hibernate.OrderStateType
com.lyq.util.hibernate.PaymentWayType
com.lyq.util.hibernate.SexType
com.lyq.util.OrderStateConversion
com.lyq.util.PaymentWayConversion
com.lyq.util.SexConversion
这几个类,感觉很怪异,而且书中完全没提到这是作什么用的
一个字也没说,第24章之前的例子都没使用这几个类,也运行的好好的不是吗?
还有在com.lyq.model.order.Order.hbm.xml映射表中
<property name="paymentWay" type="com.lyq.util.hibernate.PaymentWayType" length="15"/>
<property name="orderState" type="com.lyq.util.hibernate.OrderStateType" length="10"/>
在实体类Order.java里却是
private PaymentWay paymentWay;
private OrderState orderState;
那为什么不能写成
<property name="paymentWay" type="com.lyq.model.PaymentWay" length="15"/>
<property name="orderState" type="com.lyq.model.OrderState" length="10"/>
???
        
                
        	
        
        
    为什么要使用
com.lyq.util.hibernate.EnumType
com.lyq.util.hibernate.OrderStateType
com.lyq.util.hibernate.PaymentWayType
com.lyq.util.hibernate.SexType
com.lyq.util.OrderStateConversion
com.lyq.util.PaymentWayConversion
com.lyq.util.SexConversion
这几个类,感觉很怪异,而且书中完全没提到这是作什么用的
一个字也没说,第24章之前的例子都没使用这几个类,也运行的好好的不是吗?
还有在com.lyq.model.order.Order.hbm.xml映射表中
<property name="paymentWay" type="com.lyq.util.hibernate.PaymentWayType" length="15"/>
<property name="orderState" type="com.lyq.util.hibernate.OrderStateType" length="10"/>
在实体类Order.java里却是
private PaymentWay paymentWay;
private OrderState orderState;
那为什么不能写成
<property name="paymentWay" type="com.lyq.model.PaymentWay" length="15"/>
<property name="orderState" type="com.lyq.model.OrderState" length="10"/>
???

 
	
                                                 VIP会员
VIP会员 购物车
购物车

 私信
                         私信 
                     发表新帖
发表新帖 立即签到
立即签到 
        		  
        		 
         		 关注
关注
                  回复
 回复 支持(
                	支持( 反对(
                    反对( 
                    
 
                







 
                     
                     
					 
						 
						 
						 
						