首页 \ 问答 \ Java Hibernate org.hibernate.annotations.Index(Java Hibernate org.hibernate.annotations.Index)

Java Hibernate org.hibernate.annotations.Index(Java Hibernate org.hibernate.annotations.Index)

我正在我的数据库中实现索引我想知道这个注释是否仅适用于DDL我们有一个遗留系统如果没有生成架构,这句话不起作用?

被忽略了?

我的代码

@org.hibernate.annotations.Table(appliesTo = "person",indexes={@org.hibernate.annotations.Index(name = "part_of_name",columnNames={"c01"})})  

我正在检查文档, INDEX的文档几乎是空的。 看一看

索引文件


i am implementing Indexing in my DB i was wondering if this annotations only works on D.D.L. We got a legacy System this sentence dont works if the schema is not generated?.

is ignored?

my code

@org.hibernate.annotations.Table(appliesTo = "person",indexes={@org.hibernate.annotations.Index(name = "part_of_name",columnNames={"c01"})})  

i was checking the docs and the doc for INDEX is almost empty. take a look

Doc for Index


原文:https://stackoverflow.com/questions/17768279
更新时间:2022-02-17 09:02

最满意答案

我相信我找到了解释。 该项目是在本地计算机上创建的,并在某个时刻传输到服务器。 我首先打开项目解决了“另存为”问题,然后在Windows资源管理器中导航到项目文件夹并删除了包,然后返回到BIDS并保存了项目。


I believe I found the explanation. The project was created on a local machine and at some point was transferred to the server. I resolved the 'Save As' issue by first opening the project, then in windows explorer navigated to the project folder and deleted the packages, then went back to BIDS and saved the project.

相关问答

更多
  • 我在干净的Windows 2008 R2服务器上安装了SQL Server 2012数据工具(来自SQL Server 2012 DVD)。 它自动安装了VS 2010 Shell + SP1,其余安装没有问题 - 我能够将我的2008 R2 SSRS项目转换为2012。 有趣的是,只有解决方案文件被转换,实际的RDL文件在转换过程中不会改变。 即使对于2005(v8)报告项目也是如此。 更有趣的是,在*.sln文件里面它只标记了新的VS版本,所以没有必要执行转换 - 出于兼容性原因,它可能会留下旧格式。 ...
  • 如果两个环境之间的包或配置文件的名称/位置存在差异,则需要两个不同的作业脚本。 如果您正在执行文件系统部署,并使用相对/本地路径来指定程序包和配置的位置(换句话说,您不必在路径中指定服务器名称),那么相同的作业脚本应该可以工作两种环境。 You need two different job scripts if there are any differences in the name/location of either the package or the config file between the ...
  • 我会选择西蒙的#1建议。 您可以只存储文件的相对路径 - 相对于文件存储位于用户可访问的文件系统的任何位置的根。 #2存在备份和恢复方面的问题 - 您只是通过存储所有二进制数据来获得实际收益,从而使数据库变得不必要地大。 这两种方法都需要客户端来获取数据。 #2可能只是为了重新创建文件而消耗大量的服务器和客户端资源 - 当然,对于高访问率或高数据量来说,它不能很好地扩展。 I'd go with Simon's #1 suggestion. You can just store a relative pat ...
  • 没有简单的属性可以切换到可以恢复到旧版本。 您可以在Management Studio中尝试以下操作: 选择您的源数据库 选择任务>生成脚本。 选择'脚本整个数据库和所有数据库对象',按'下一步' 选择“保存到文件”并点击“高级”按钮 选择'Script for Server Version'并选择你想要的版本:2000/2005/2008 选择'脚本数据类型'并选择Schema / Data / both 点击“确定”,然后执行操作! 将生成的文件复制到目标机器。 登录到您的SQL Management ...
  • 我相信我找到了解释。 该项目是在本地计算机上创建的,并在某个时刻传输到服务器。 我首先打开项目解决了“另存为”问题,然后在Windows资源管理器中导航到项目文件夹并删除了包,然后返回到BIDS并保存了项目。 I believe I found the explanation. The project was created on a local machine and at some point was transferred to the server. I resolved the 'Save As' ...
  • 购买问题将不在话题,但您应该能够联系您当地的Microsoft许可授权经销商(LAR),开发人员许可证将为您带来大约50美元 您还可以查看MSDN许可证,该许可证允许您选择一个软件选择,其中SQL Server 2008 R2 Developer版本将是一个,但成本将至少比单个许可证高十倍。 除非您计划将该安装升级到SQL Server 2012,否则在新计算机上安装VS 2012将是一个糟糕的选择。您在Visual Studio中创建的BI工件直接绑定到安装的SQL Server版本,直到2016年为SS ...
  • 我想你必须从这个链接单独下载SQL Server数据工具(SSDT) - https://msdn.microsoft.com/en-us/library/mt204009.aspx 此版本通过SQL Server 2005支持SQL Server 2016 I think you will have to download SQL Server Data Tools (SSDT) separately from this link - https://msdn.microsoft.com/en-us/li ...
  • 是。 在DTSX中有一个DTS:Name="PackageType" 。 将您的值与MSDN中的枚举进行比较: http : //msdn.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.dtspackagetype.aspx A 5表示BIDS 2008。 Yes. There is a DTS:Name="PackageType" ...
  • 您无法在低于开发级别的发行版的版本上运行SSIS包,因此无法从SQL Server 2012部署到SQL Server 2008,因为SSIS包不向后兼容。应该适用于2008R2。 MSDN文档: 在SQL Server 2014的实例上,您可以从SQL Server 2005实例或SQL Server 2008实例导入包,但不能将包导出到SQL Server 2005实例或SQL Server 2008实例。 在SQL Server 2005的实例或SQL Server 2008的实例上,您无法从SQL ...
  • 简短的回答是肯定的,只有一点点。 MSDN实际上有一些非常好的信息。 从升级报告中 ,我认为关键点是: 在SQL Server数据工具(SSDT)中的报表设计器中打开报表时,报表定义将升级到当前支持的RDL架构。 在项目属性中指定SQL Server 2008或SQL Server 2008 R2报表服务器时,报表定义将保存在与目标服务器兼容的架构中。 和: 将Reporting Services安装升级到SQL Server 2014 Reporting Services(SSRS)安装时,已发布到报表服 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)