Hiberante 中 sort 的实现方式

http://hi.baidu.com/accpandsvse/blog/item/a12c22f23d0d1bc20a46e091.html

http://hi.baidu.com/accpandsvse/blog/item/a12c22f23d0d1bc20a46e091.html

  • 從資料庫的觀點來看,Set、Map、Bag是無序的,而List是有序的,這邊所謂的無序或有序,是指將容器中物件儲存至資料庫時,是否依容器物件中的順序來儲存。
  • 然而從資料庫取得資料之後,您也許會希望Set、Map等容器中的物件可以依一定的順序來排列,您可以從兩個層次來容器中的物件排序,一是在載入資料後於JVM中排序,另一是在資料庫中直接使用order by子句來排序。
  • 以 Set 這篇文章中的範例來作說明,要在JVM中就資料進行排序,您可以在映射文件中使用sort屬性來定義容器的排序,這適用於Set與Map,例如:
  • User.hbm.xml  
  • <?xml version="1.0" encoding="utf-8"?> 
    <!DOCTYPE hibernate-mapping 
     PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> 
    
    <hibernate-mapping> 
    
     <class name="onlyfun.caterpillar.User" table="user"> 
     .... 
     <set name="emails" table="email" sort="natural"> 
     <key column="id"/> 
     <element type="java.lang.String"
     column="address"/> 
     </set> 
     </class> 
    
    </hibernate-mapping>
    复制代码

     

  • sort="natural"表示使用物件的comparaTo()方法來進行排序,容器中的物件上必須有實作java.lang.Comparable 介面,例如String就有實作java.lang.Comparable介面,結果會使用字典順序來排列容器中的物件。

  • 您可以實現自己的排序方式,只要定義一個類別來實作java.util.Comparator介面,例如:
  • CustomComparator.java
  • package onlyfun.caterpillar; 
    
    import java.util.Comparator; 
    
    publicclass CustomComparator implements Comparator { 
    publicint compare(Object o1, Object o2) { 
    if (((String) o1).equals(o2)) 
    return0; 
    return ((Comparable) o1).compareTo(o2) *-1; 
     } 
    } 
    复制代码
  • 在自訂的Comparator中,如果兩個物件的順序相同會傳回0,而為了方便比較物件,要求傳入的物件必須實作Comparable介面(例如 String物件就有實作Comparable介面),範例中只是簡單的將原來compareTo()傳回的值乘以負一,如此就可以簡單的讓排列順序相反,接著可以在映射文件中指定自訂的Comparator類別:
  • User.hbm.xml
  • <?xml version="1.0" encoding="utf-8"?> 
    <!DOCTYPE hibernate-mapping 
     PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> 
    
    <hibernate-mapping> 
    
     <class name="onlyfun.caterpillar.User" table="user"> 
     .... 
     <set name="emails" table="email"
     sort="onlyfun.caterpillar.CustomComparator"> 
     <key column="id"/> 
     <element type="java.lang.String"
     column="address"/> 
     </set> 
     </class> 
    
    </hibernate-mapping>
    复制代码

      

  • Bag與List並不適用於這種方式。
  • 另一個排序的方式則是在資料庫中進行,直接使用order by子句來排序,這可以在映射文件中使用order-by屬性來指定,例如:
  • User.hbm.xml
  • <?xml version="1.0" encoding="utf-8"?> 
    <!DOCTYPE hibernate-mapping 
     PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> 
    
    <hibernate-mapping> 
    
     <class name="onlyfun.caterpillar.User" table="user"> 
     .... 
     <set name="emails" table="email" order-by="address desc"> 
     <key column="id"/> 
     <element type="java.lang.String"
     column="address"/> 
     </set> 
     </class> 
    
    </hibernate-mapping>
    复制代码

      

  • 觀察Hibernate所使用的SQL可以看到order by子句:
  • Hibernate:
  • select emails0_.id as id0_, emails0_.address as address0_ 
    from email emails0_ where emails0_.id=? orderby emails0_.address desc
【软件系统架构】系列六:系统工程 系统工程是一种跨学科方法论,用于分析、设计、集成和管理复杂系统的全生命周期。其核心特点包括系统性思维、全周期管理、跨学科协作和需求导向。主流采用V模型生命周期,涵盖需求分析、系统设计、实现、测试验证及运维退役等阶段。核心工作方法包括需求工程、系统建模、接口设计、风险管理等。系统工程与项目管理协同,分别侧重技术实现和进度资源管理。应用领域覆盖航天军工、智能制造、智慧城市等。未来将向AI融合、数字孪生、模型驱动工程等方向发展,为复杂系统开发提供系统化协作范式。 阅读详情

相关推荐

AD620单电源应变片测量电路分析

笔者最近在用AD620做应变片的压力检测电路,正好AD620的datasheet中有对于应变片压力测量的应用电路,参考该电路进行设计及实验后发现该电路存在些许问题,并对其进行了优化改进。本文纯属个人理解,供大家参考,欢迎批评指正。 AD620应用电路分析及优化 应用电路分析 AD620手册中原电路如下(加了部分标注以便分析): 该电路中,前半部分比较明显,为经典的AD620放大电路结构:四个应变...

拙诚电子工作室 1万+

【Hibernate】Hibernate的集合映射与sort、order-by属性

常用集合Set、List、Map,相信大家都很熟悉,面试中也会经常问。Set和List都继承了Collection接口,Set是无序不可重复的,不可以存储相同的元素;而Lsit是顺序存储的,可存储重复元素。Map不是继承Collection的,Map提供key到value的映射,Map也是不可重复的(key不可重复),一个Map中不能包含相同的key,每个key只能映射一个value。 持久化类

LZGS_4的专栏 3691

从Delta Delay到Timing Window:详解数字芯片后端时序差异的那些坑

本文深入剖析了数字芯片后端设计中,模块级与系统级时序分析结果不一致的核心原因。重点解释了Delta Delay如何导致模块级分析的乐观假设,以及Timing Window(时序窗口)差异如何通过影响串扰噪声计算,在顶层集成时引发新的时序违例,尤其是保持时间问题。文章为工程师提供了从约束建模到签核策略的系统性应对方案。

beer8的博客 503

Hibernate(2)【sort和order by】排序的区别

在Hiebernate集合映射关系中,排序问题<set name="addresses" table="addresses" *sort="natural"*> <key column="uid" /> <element column="address" type="string" /> </set>sort=”natural”保证了出库排序,而

Renshaoxiong的博客 1318

VisionMaster 4.2.0安装

按照顺序安装。

XuXing_java的专栏 3897

Airsim动态 | 安装ROS包装器(AirSim ROS Wrapper)

本期内容我们将带来在Airsim环境下使用ROS Wrapper的相关教程,以下是AirSim客户端库上的一些ROS Wrapper相关配置。 一、启动 以下步骤适用于 Linux 系统。如果是在 Windows 上运行 AirSim,可以使用 Windows Subsystem for Linux (WSL) 来运行 ROS 包装器,如果不想在主机上安装ROS相关工具,也可以使用Docker容器进行安装。请检查下方内容并按照需求安装,具体内容可以参照最后网址。 如果您的默认 GCC 版本不是8或更高版.

AMOVLAB(阿木实验室) 1778

hibernate 集合排序 一 (内存排序)

  内存中排序 &lt;set&gt;&lt;map&gt;类似     使用sort属性,我们可以通过在取回结果集后在内存中进行排序,然后返回一个经过排序的结果集合 数据库结构: create table teamSort (id varchar(32),teamname varchar(32)); create table studentSort (name va...

terryjs 163

BLDC方波控制双闭环Simulink仿真模型

无刷直流电机方波控制双闭环Simulink仿真模型搭建详细教程,包括速度PI环、电流PI环、换向逻辑和受控电压源,仿真结果良好。

m0_57458432的博客 6879

SSH:Hibernate框架(Hibernate查询排序和组件映射)

在实际开发过程中,有很多用户需要时要把查询出来的结果进行排序显示,而不是在数据库里面那样顺序混乱那样的显示,这样的话我们不得不要对数据进行排序了,hibernate对数据排序提供了很好的支持,hibernate提供了两种对查询到得数据结果进行排序:1:数据库排序,也就是说在数据库内部就进行完了排序。2.内存排序,也就是说在数据库中把数据加载到内存中在进行排序。其实一般我们推荐使用第二种排序方式,因

流年少年 956

STM32CubeMx + FatFs 实战:SD卡DMA传输中断回调问题深度解析

本文深度解析了在STM32CubeMx环境下,结合FatFs文件系统并使用DMA进行SD卡读写时,程序可能出现的“卡死”问题。核心原因在于HAL库的弱函数回调机制未被正确处理,导致DMA传输完成中断后,状态机锁死。文章提供了两种实战修复方案:直接修改HAL库文件或在用户代码中重写回调函数,并给出了关键的配置检查点与调试技巧,帮助开发者彻底解决SD卡DMA传输中断回调失效的难题。

weixin_29176179的博客 333

Vue - ElementUI el-date-picker 周日期选择器(type=week),获取开始和结束的年月日、当前选择日期的周数等,支持将选择范围修改为 “礼拜一到礼拜日“(提供示例源码)

vue,element-ui,DatePicker日期选择器,vue2elementUI日期选择器选择一周7天的数据格式怎么拿到,el-date-picker设置type等于week后怎么设置format属性,format和value-format怎么设置,范围选择器周,一周,选择一周7天时间,el-date-picker,周,type=week,周选择器,面板显示周数,显示第n年第n周数据,详细示例代码教程,elementui官方文档,vue2element-UI日期时间选择器怎么设置week周选

🏆 前端领域优质创作者 6449

Hibernate映射集合属性3__排序用的sort属性

如果在数据库中实现不了排序,才启用这个 sort="unsorted|natural|comparatorClass" 默认为:unsorted 自然排序:natural 比较器类排序:comparatorClass user.setAddressSet(new TreeSet());// 当设置了sort属性时,就要使用SortedSet类型 user.getAddressSe

辐_射的博客 1309

5G 模组 FM650 USB模式查询及网络配置

完成以上配置后,5G模组可进行搜网,入网成功后,上位机获取 5G IP。

十年通信老兵的技术修炼之路——从3G到5G,从地面基站到卫星通信。 1334

Hibernate 中 set 里的属性及定义

name:映射类属性的名称; access:hibernate访问这个属性的策略 table:关联的目标数据库表 schema:目标数据库表的schema名字 catalog:目标数据库表的catalog名字 lazy:是否采用延迟加载 subselect:定义一个子查询 inverse:用于标识双相关联中被动的一方,一般标识一对多中一的一方设置为ture sort;设置排序的类型...

weixin_30430169的博客 92

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Hibernate 2nd-level cache: 基础概念

 Introduction The goal for this document is to mainly describe the Hibernate 2nd-level caching strategy, learning how to use it and how can we got the performance benefit from the caching strategy. ...

DGenerationX的专栏 635

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

JSTL - <form:select> 的用法

转载自: http://www.web-tag.net/3c98ca7b0cac8312.htm 下拉框组件标签       下拉框标签的典型形式为:    &lt;form: select path="city" items="${cityList}"/&gt;,它包括两方面的数据:     1)对应表单对象属性值(city);    2)用于构造整个下拉框选项的数据(cityList)...

DGenerationX的专栏 502

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

JUDE UML 操作技巧

1. How to create Assembly Connector - 1 Step 1: Step 2: Step 3: Completed 2. How to create Assembly Connector - 2 Step 1. There are two same interfaces on diagram. One is connected by...

DGenerationX的专栏 421

Java Thread: CountDownLatch 例子

public class CountDownLatchTest {    @Test  public void ThreadControllTest() throws InterruptedException{   // Suppose we have total 10 thread waiting to execute   final int TOTAL_THREAD_NUM = 10...

DGenerationX的专栏 352

Cruise Control 持续集成 - 如何自动编译,打包,并自动发布至Tomcat

一, 前言 目标是,利用CruiseControl 自动抓取SVN下的源代码,并且将项目源码自动编译,打包成war,并自动部署到 Tomcat 中。   二, CruiseControl 如何自动获取SVN源码 1. 首先, 将 SVN 工程 checkout 到 CruiseControl Project 目录下。   cd  ${CC_PROJECT_PATH}/your...

DGenerationX的专栏 351

eclipse indigo 目前运行时遇到的问题汇总

用了几天 Eclipse Indigo, 运行时经常无故退出。   1. 启动报错,can not initialize JVM     解决办法: 修改 eclipse.ini,将 XXMaxPermSize 改为 128M   2. 用 SVN Checkout 项目,经常报错,无故退出     这个问题让我百思不得其解,但是解决办法是,将我本地安装的 SVN Server 端 给...

DGenerationX的专栏 347

Java 如何获得本机IP 或者 公网IP

你应该是拔号上网 如果可以的话,请搜索一下网络,得到java怎么调用dos的方法,然后你可以解析ipconfig /all这个命令的结果,得到你想要的公网IP 大部分情况下,用户都是通过路由来上网的,也就是说,电脑根本不知道自己的公网IP是多少,他只知道路由分配给它的内网IP,这个时候,我们只能通过别的网站来判断。 下面是以前我以前写的一个小程序,通过www.ip138.com 得到自...

DGenerationX的专栏 345

Hibernate 2nd-level cache: JBoss Caching 配置与注意事项

依赖包: jboss-cache-1.4.1.jar jboss-client-4.0.2.jar jboss-common-client.jar jboss-jmx.ja jboss-system-4.0.2.jar jgroups-2.4.1.jar concurrence   check those under the attached file ensential-jar...

DGenerationX的专栏 337

Sysdeo Eclipse Tomcat Launcher plugin 使用总结

TomcatLauncher plugin 很轻量级,很喜欢. 以下是如何通过 TomcatLauncher 搭建Tomcat 开发环境 step-by-step   1. 工程目录:         注 1. conf/server.xml 直接拷贝自 Tomcat 安装目录下的conf 文件,唯一要修改的地方是        注 2. WEB-INF 下面还应创建一个 classes ...

DGenerationX的专栏 295

Java 打包成可执行程序 .exe

将java应用程序打包成独立运行的.exe方法 2009年02月06日 星期五 22:10 将java应用程序打包成独立运行的.exe方法 对于windows用户来说,将java应用程序打包成.exe最好不过了,现在我介绍两个方法。 1、用专业的应用程序打包工具InstallAnywhere,这个软件几乎能在所有平台上运行,当然你要下载到你需要的那个平台的啦!而且它也...

DGenerationX的专栏 251

JAXB Marchel and UnMarchel Quick Start

reference link: http://www.oracle.com/technetwork/articles/javase/index-140168.html (1.x) http://www.java-tips.org/java-ee-tips/java-architecture-for-xml-binding/what-is-new-in-jaxb-2.0.html   Plu...

DGenerationX的专栏 240

操作 Cookie

Cookie包含的属性   名称, 内容, 主机, 路径 ....    Cookie的唯一性   一个唯一的Cookie 由 名称,主机,路径 确定.  这里路径是最容易被忽略的,如下图,这两个Cookie虽然名称,主机名都相同,但是确实两个不同的Cookie.   1) 有两个同名的 (PRODUCTS_IN_COOKIE)   2) 两个同名的Cookie 唯一...

DGenerationX的专栏 233
上一篇: hibernate的各种保存方式的区别(save,persist,update,saveOrUpdte,merge,flush,lock) hibernate
下一篇: IE6环境下遭遇winow.location.href=''的跳转bug
伤神v
博客等级 码龄19年 17粉丝 129原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值