我定义了一些实体,并希望现在生成表格。
我使用Eclipselink 2.5(JPA 2.1)和Glassfish 4.0,我的程序使用JKD7。
当我构建应用程序时,会出现以下消息:
warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.7'
Note: Creating static metadata factory ...
Note: Optional file was not found: META-INF/orm.xml continuing with generation.
Note: Optional file was not found: META-INF/eclipselink-orm.xml continuing with generation.
Note: Optional file was not found: META-INF/orm.xml continuing with generation.
Note: Optional file was not found: META-INF/eclipselink-orm.xml continuing with generation.
我不知道我现在需要做什么......
我该如何解决这个问题?
编辑1:
<properties>
<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="database"/>
</properties>
答案 0 :(得分:0)
将这些行放在persistance.xml中:
<property name="eclipselink.ddl-generation" value="create-tables" />
<property name="eclipselink.ddl-generation.output-mode" value="database" />
<property name="eclipselink.ddl-generation-mode" value="ddl_database_generation" />
答案 1 :(得分:0)
我遇到了同样的问题,找到了解决方案 here。
在 netbeans 上更改此设置:
def generate_fft_data(data,labels, n_seconds_split=3):
x = 256 * n_seconds_split
y = 16
z = 48 * int(6/n_seconds_split)
data = data.transpose(2,0,1).reshape(x,y,z).transpose(2,0,1)
fft_data = []
for electrode in range(data.shape[2]):
y_t = fft(data[:,:,electrode])
fft_data.append(np.abs(y_t))
sum_of_ffts = np.add.reduce(fft_data)
return sum_of_ffts